Using Jetpack_RelatedPosts_Raw to show content
-
I’m using the latest 3.8.1 version of Jetpack and have switched ON the Related Posts functionality yesterday.
I tried to use Jetpack_RelatedPosts_Raw as described here: https://jetpack.me/support/related-posts/customize-related-posts/#raw
….But I see nothing.
Is it because Jetpack takes time to index all the content of my site after I switch ON Related Posts? If yes, how long does it take to start working?
Thanks!
-
Could you let me know how you tried to use the
Jetpack_RelatedPosts_Rawclass?Could you also let me know what happens when you remove all custom code you may have added, and let Jetpack handle the display of the Related Posts? If the posts still aren’t displayed then, could you post your site URL here so I can have a look?
If you want it to remain private, you can also contact us via this contact form:
http://jetpack.me/contact-support/Thanks!
I am trying to use the shortcode like this in my template:
<?php echo do_shortcode( '[jprel]' ); ?>I also tried removing the custom code and switched on Related Posts from the Dashboard > Settings area, but nothing appears.
I’ll send you the URL privately, and post our conclusions here.
UPDATE: I got this working!
This is the code I used in the template:
http://pastebin.com/Cs3FMz64I think it took a while since I activated Related Posts, for the data to show up. Not sure how long, but I tried after two days and it worked.
Could you check out the pastebin and let me know if that is efficient enough for my needs?
Thanks!
It looks good! I’m glad to hear you could figure it out!
Not sure how long, but I tried after two days and it worked.
That’s most likely because your posts were not all indexed yet. It should be okay now!
The topic ‘Using Jetpack_RelatedPosts_Raw to show content’ is closed to new replies.