Display advanced custom field values on category and tag archive pages

Posted in: Newspaper
Post count: 11

Hello,

How can I display two inputs generated by advanced custom fields plugin on category pages and tag archive pages under the title. Iam using the module 8 for article display view. Which file i need to edit and where to add the code.

Thank you
~Sheen

Post count: 22421

Hello,

Well if you want to alter the code for module 8, you should change the module 8 file here: https://www.screencast.com/t/GTBCiFBdJn I cannot say for sure where to add the code as we have not tested any such implementation. if you want to add code under the title for module 8, you can place the code under the title code: https://www.screencast.com/t/Q92Yuy1yM

Thank you!

Post count: 11

Hello Bogdan,

Sorry for asking again. Unfortunately the solution you suggested didn’t work for me. It did not showing any results on category pages. I added a custom field named “info” and paste this code on the location you suggested

<div class="item-details">
<?php echo $this->get_title($title_length);?>

<?php echo get_field ('info');?>

<div class="td-module-meta-info">
<?php if (td_util::get_option('tds_category_module_8') == 'yes') { echo $this->get_category(); }?>
<?php echo $this->get_author();?>
<?php echo $this->get_date();?>
<?php echo $this->get_comments();?>
</div>
</div>

Is there need to add it on any other location.

Thank you
~Sheen

Post count: 11

No need to reply Issue Solved. Thanks For your support

Post count: 101

Hi Paul, am struggling myself with this one. Would it be ok with you to share your solution ?

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