Remove related posts and keep More from Author

Posted in: Newspaper
Post count: 10

I only want to display more from author and and not related posts. How do you remove the related posts section but keep the MORE FROM AUTHOR only?

Post count: 10

Therefore the More From Author becomes the default and loads without clicking the More From Author tab, when not displaying the related post part.

Post count: 20688

Hi,

Unfortunately there is no settings like the one you require. All the available settings for the Related articles section can be seen here – https://forum.tagdiv.com/related-articles/
To achieve something like that would require modifications to the theme files, and probably it is not an easy task. That is the way the Related Articles was designed, to display related posts by category or tag and more articles from the author.

Thanks

Post count: 10

Thanks for the response Simion.

I have narrowed it down to td_block_related_posts.php and this bit of code data-td_filter_value=”td_related_more_from_author” within the code below. When you click the MORE FROM AUTHOR tab it filters the results. Trying to figure out how you would get it to load data-td_filter_value=”td_related_more_from_author” as default for that block rather then related posts. Most be a way to allocate it somewhere.

//get the filter for this block
$buffy .= ‘<h4 class=”td-related-title”>’;
$buffy .= ‘block_uid . ‘” href=”#”>’ . __td(‘RELATED ARTICLES’, TD_THEME_NAME) . ‘‘;
$buffy .= ‘block_uid . ‘” href=”#”>’ . __td(‘MORE FROM AUTHOR’, TD_THEME_NAME) . ‘‘;
$buffy .= ‘</h4>’;

$buffy .= ‘<div id=’ . $this->block_uid . ‘ class=”td_block_inner”>’;
$buffy .= $this->inner($this->td_query->posts, $td_column_number); //inner content of the block
$buffy .= ‘</div>’;

//get the ajax pagination for this block
$buffy .= $this->get_block_pagination();
$buffy .= ‘</div> <!– ./block –>’;
return $buffy;

Post count: 20688

Hi,

Try making these changes as explained below, and see if this is working for you. First you need to make some changes in this file – https://www.screencast.com/t/mlbjJvVdXv
Then try commenting these lines of code in this file – https://www.screencast.com/t/4sw8LPoA
I have not tested this properly, but maybe you can see if this is working for you, or make additional modifications.

Thanks

Post count: 80

Did this work? I would like the same thing.

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