Displaying custom fields

Posted in: Newspaper
Post count: 74

How do I display (custom fields) in some of the TagDiv components?

Can I copy the components and add them to a child theme? If so, where do I find the components that I can copy?

For example, I am using a (Big Grid Flex 2) and a (Flex Block 3) component.

Post count: 35449

Hi kevinsikora, if you make the correct changes in theme files, then yes, you can display the custom fields, but the problem is that those flex elements will not work in a child theme. The code for those blocks are on this path wp-content/plugins/td-composer/legacy/Newspaper/includes/shortcodes/ and the changes should be set in this zone -> https://i.imgur.com/W7wxsAQ.png -> https://i.imgur.com/3qrFGk7.png
I hope this will help you!

Post count: 74

Thanks for the advice. But I’m still having some issues. I am trying to access a custom field called (location). I am using the following PHP code to do that:

echo get_post_meta( get_the_ID(), ‘wpcf-location’, true); echo get_the_ID();

The code gets executed but I all I see is the post ID from the second get_the_ID() call.

How do I get the value of the location field?

When I look at that field on the backend/admin part of the site, on a post where I am using it, I see the following:

<input type=”text” id=”post_wpcflocation” name=”wpcf[location]” value=”Alameda, California” class=”wpt-form-textfield form-textfield textfield” data-wpt-type=”textfield” data-wpt-id=”wpcf-location” data-wpt-name=”wpcf[location]”>

Post count: 74

Please disregard my previous request. I found out what the issue was.

Post count: 27744

Hello!

I’m glad that you managed to solve your issue in the end.

Have a nice day!

Post count: 74

Where can I find the code for the following: row -> column -> Posts Loop?

Post count: 27744

Hi,

I’m sorry I did not understand what you are looking to edit.
If you referring to where you can find the post loops from path wp-content/plugins/td-cloud-library/shortcodes/common/tdb_loop.php and tdb_loop_2.php

Thank you!

Post count: 74

I installed a Pre-designed Template from the tagDiv Cloud Library. I’m not sure which one I installed. I renamed it.

I have the following page on my site: https://www.wheredoitakethekids.com/categories/places/. I would like to display a custom field next to each “summary post.” Basically I want to display an address under each title.

I was assuming I needed to modify a “specific” page like td_block_big_grid_flex_3.php. When I click on the element to edit it, all I see is (row -> column -> Posts Loop).

Post count: 27744

Hello,

If you make a change in the theme files of the posts loop, this change will appear in all templates where you use posts loop, you can find the file in this path -> wp-content/plugins/td-cloud-library/shortcodes/common/tdb_loop.php ->

Thank you!

Post count: 14

Hi @kevinsikora !
I’m also looking for the same function to call custom text on loop posts as you did on your site https://www.wheredoitakethekids.com/categories/places/.

Can you please help me to solve this ?

If you want then can send me a mail viaggindia2@gmail.com

Thank you soo much and hope to receive your reply
Kesar

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.