PetraP on "[Plugin: WordPress Related Posts] related posts not appearing on sticky posts"

خرید بک لینک

Hi Pierre,

thanks for reaching out and really sorry for the late reply.

Are you using a sticky posts plugin or are you talking about the WP feature? If the later, I think that the following should work:

Go to init.php file of the plugin, find the "if ($content != "" && $post->post_type === 'post'" part and just add the || 'sticky_posts' after 'post' like so:
if ($content != "" && $post->post_type === 'post' || 'sticky_posts' && (($options["on_single_post"] && is_single()) || (is_feed() && $options["on_rss"])))

Keep in mind that I have not tested this on my side, so please make sure you have your database backed up before making any such changes but I think it should work or at least point you in the right way.

Let me know how it goes,
Petra

WordPress ...

ما را در سایت WordPress دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 276 تاريخ: چهارشنبه 13 مرداد 1395 ساعت: 2:28

صفحه بندی