Related Posts Help
AnonymousMay 27, 2013 at 10:12 pm #7513
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
We use plugins for that. I use the WordPress 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?
AnonymousMay 27, 2013 at 11:13 pm #37146
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:
Is this impossible to achieve?Mod
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:
That way, you aren’t duck testing.
You must be logged in to reply to this topic.