Related Posts within a post

Posted in: Newsmag
Post count: 104

Is there a way to embed related posts within a post instead of at the bottom? Anyone knows of a widget, or maybe a way of using the ad system but instead of ads, embedding related articles?

Post count: 6600

Hi,

Unfortunately the theme doesn’t have an option for this and you need additional customization for it. You can try to add it yourself by adding this code: http://pastebin.com/5sXZLxYX after the default case of content inline ad, like this: http://screencast.com/t/7gduWQkVDh
Result: http://screencast.com/t/c9pnwqkYmCxg
You need to alter the array to change the related posts settings.

Thanks

Post count: 104

Thanks for this- seems as it could work. But I don’t want any banner showing so how can I add an empty/1 pixel banner?

Post count: 6600

Hi,

Just remove the inline add: http://screencast.com/t/7AnwEso1H or you can also do it via custom css:

.td-post-content .td-g-rec-id-content_inline, .td-post-content .td-a-rec-id-content_inline {
display: none;
}

Thanks

Post count: 104

Ok- but I would still need to add/populate the embed ad in the theme panel right? And it requires code instead of an image. So what could I put there for code? Because if there is no code, the embed doesn’t show and neither do Related Posts

Post count: 6600

Hi,

You don’t need the ad code so that the related articles work. The related articles will be added to your post either way.

Thanks

Post count: 104

Hmm. That’s not working for me. Nothing is showing up. So all I’ve done is added the code you give me first time. But it’s not showing up. Do I need to enable anything else?

Post count: 6600

Hi,

Make sure you add the code like instructed here: https://forum.tagdiv.com/topic/related-posts-within-a-post/#post-34243 the send me your site’s URL so I can inspect this.
Also make sure you have the article inline ad set to default and that you have an ad code there because if that ad spot isn’t enabled then the related art code will not be rendered: http://screencast.com/t/4VdgD0GcW .. http://screencast.com/t/HMdnZg04oPO
Result: http://screencast.com/t/4IPqr3J2

Thanks

Post count: 104

Thats exactly what I was asking before- what do I need to put in the ad code for it to shoot a blank ad?

Post count: 6600

Hi,

You can use this divs: http://screencast.com/t/LJiuKt01msrZ an remove the link and the source. You can find the divs in ads system guide: https://forum.tagdiv.com/ads-system-full-guide/

Thanks

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