“Read also” box inside Single Post Content

Posted in: Newspaper
Post count: 49

Hi,

I’m using the Newspaper theme and I’d like to add a “Read also” box inside Single Post Content, for example after the 4th paragraph of every article.

The box should display a link to the most popular article from the last 24 hours (using the Newspaper Popular Posts data), excluding the currently viewed article.

My questions are:

1. Is it possible to insert such a dynamic block inside Single Post Content, e.g. after a specific paragraph?
2. Can this be done using the built-in “Ads after paragraph” positions with custom code?
3. Is there a Newspaper function, shortcode, hook or API that allows retrieving the most popular post from the last 24 hours?

I’d prefer a solution without additional plugins and without modifying core theme files.

Thank you!

Post count: 20688

Hi,

It could be done like this https://forum.tagdiv.com/set-block-inside-post-content/ It’s a workaround because normally there’s no option to add a block inside the post content unfortunately. But it should work fine. You could try it. The block can use any of the available sorting methods, including the popularity options https://prnt.sc/ahstUYPvaqt0

You could also check out this plugin https://wordpress.org/plugins/intelly-related-posts/ or similar plugins. They can automatically display related articles inside the post content.

Thank you!

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