Related Posts Help

  • acw101

    #7513

    Hi!

    I had tried several codes from different websites to add the related posts below the post without using a plugin, but somehow the codes won’t work. So I’m here to seek help. How do you guys add related posts vertically (no thumbnails, just links)?

    Thank-you for any guidance!

    Mod

    Kenneth John Odle

    #37145

    We use plugins for that. I use the WordPress Related Posts plugin:

    http://wordpress.org/plugins/wordpress-23-related-posts-plugin/

    Is there any particular reason you don’t want to use a plugin?

    Quote:
    I had tried several codes from different websites to add the related posts below the post without using a plugin, but somehow the codes won’t work.

    I’m not aware of any code you can just add achieve this. Links?

    acw101

    #37146

    Hey John,

    I just don’t want to use too many plugins on my site. Slowing down the loading time, etc.

    I thought i could achieve related posts through function from the two links below:

    http://www.hongkiat.com/blog/wordpress-related-posts-without-plugins/

    http://www.wpbeginner.com/wp-themes/how-to-add-related-posts-with-a-thumbnail-without-using-plugins/

    Is this impossible to achieve?

    Mod

    Kenneth John Odle

    #37147

    Those are interesting articles, but I have to take issue with them on a number of points:

    First, how well your website performs depends on a number of issues, not just how many plugins you are using. I could run a WordPress blog with thirty plugins that would perform better than one with no plugins at all. It depends on which plugins I use and various other techniques I use, such as caching.

    Second, both articles recommend adding that code to your theme’s core files. You should never do this, for a number of reasons.

    Third, both articles are providing code that, with not much effort, could be used as the basis for a related posts plugin, so I’m not sure how much server load they really are saving.

    Fourth, I found this quotation really interesting:

    Quote:
    The main benefit is that you don’t have to rely on a third party (the plugin developer) for your blog to function. There are many cases of popular plugins being abandoned by their developers, leaving countless site owners stuck with outdated and potentially vulnerable software.

    That’s a valid point. (WordPress does change, after all; I have dozens of themes that use deprecated functions and have never been—and likely never will be—updated. But just because their code isn’t in a plugin doesn’t mean it’s any more or any less valid than code that is in a plugin. When WordPress changes (and it will) and this code doesn’t work any more (which is likely), will they update their posts?

    I would go ahead and try a related posts plugin and see what it does to your site’s performance. If there are performance issues, chances are it isn’t because you added a single plugin, but because there are other underlying issues that should be dealth with.

    Use some real tools to measure your site’s performance both before and after adding a plugin:

    https://developers.google.com/speed/pagespeed/

    http://tools.pingdom.com/fpt/

    http://www.webpagetest.org/

    That way, you aren’t duck testing.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.