related_posts()

Posted in: Newspaper
Post count: 7

hi.
sorry i dont speak english.
how add ‘post_type’=> array (‘post’,’news’,’stats’)
in function related_posts()

in Newspaper v4.6
edit
td_module_blog.php
case: by tag
insert ‘post_type’=> array (‘post’,’news’,’stats’) to $args
in Newspaper v.6.1
how?

Post count: 7909

Hi,

You can find related_posts function here in td_module_single_base.phphttp://screencast.com/t/0QEqGxSji if you want to modify it.

Thanks!

Post count: 7

how add custom post type to function related_post?

Post count: 7909

Hi,

Please set to pick related articles by tag from Theme Panel > Post Settings – http://screencast.com/t/fDLHWdnPaG9 and try to add your post types here – http://screencast.com/t/g4MPp7LEC1

Thanks!

Post count: 7

I already did, but output only ‘post’

Post count: 3343

Hi,
You need to add the code here: http://screencast.com/t/BgKU9Da5HCJ also i commented those 2 lines. I made a test for product post type. http://screencast.com/t/Uovm2OoZgKrk

Thanks!

Post count: 7

It works,
but the action will apply to all blocks on the page?

Post count: 3343

Hi,
The settings is global, but can be added some php conditions. When do you want to have this?
Thanks for the message!

  • This reply was modified 11 years by Marius.
Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.