how to display custom field (via_url, an other)

Posted in: Newsmag
Post count: 12

I want to display this data – http://cyber.pressball.by/1.png (all)
for example here – http://cyber.pressball.by/2.png (module 7 )
i tried like this
$source_url = $this->td_post_theme_settings['td_source_url'];

Post count: 20688

Hi,

The source meta is displayed only in the post page, and not in the modules. You would have to modify the module files in order to make them display it, if this is required. Here is a similar topic if you would like to give it a try https://forum.tagdiv.com/topic/add-via-or-source-text-on-posts-loop/

Thank you!

Post count: 12

thank you!

function get_source_and_via() { $buffy =''; //via and source if
 (!empty($this->td_review['td_source']) && !empty($this->td_review['td_source_url'])) { $source_url = $this->td_review['td_source_url']; $buffy .= '<div style="margin-top:10px;" class="td-post-small-box"><span>' . __td('SOURCE', TD_THEME_NAME) . '</span><a rel="nofollow" href="' . esc_url($source_url) . '">' . $this->td_review['td_source'] . '</a></div>'; } return $buffy; }

its work

  • This reply was modified 5 years by wmvova.
Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newsmag’ is closed to new topics and replies.