I Have Multiple Category in my website, it’s focused with one category Only / posts. But, The “feautured” Category make my “Related Articles” Look very bad. My question is, HOW TO MAKE RELATED ARTICLES IN THE BOTTOM Display “PRIMARY CATEGORIES CONTENT” Only. Thanks đ
Hello,
The related articles section can be filtered based on the same category or y the same tag. you can add tags to your posts and then filter the related articles by the tags o you can have better control over what posts get displayed in the related articles section: http://screencast.com/t/uy4WHChLLEe
Thank you!
My Blog Does not have many content :'(
So I’m Afraid this step cannot be Done.
Hello,
It does not matter if you have more or less content. You can add tags to posts in each case. You can even bulk edit from the wordpress section like so: http://screencast.com/t/ORUlcKDSaZI
This is the only way you can control the exact posts to appear in the related articles section because if you have many categories and multiple categories on each posts, the related articles will show all of the content that has one of the viewed post’s categories.
Any other implementation will require custom work and hard-coding.
Thank you!
OK then, how about to Bypass the “FEATURED” Category only?
Hi,
There is no setting to do this so it will have to be removed from the code. the problem is the filter is a common one, as it is used by multiple elements in our theme, not just the related articles section. If you want to remove a certain category you must alter this code: http://screencast.com/t/R2ucTI0zcB
Here is the wp function that is being used: https://developer.wordpress.org/reference/functions/wp_get_post_categories/
You will have to alter this code to exclude categories from it. If you do not know the steps you need to take in this regard we suggest getting some help on this as we cannot offer any customization services at the moment.
Thank you!
So, this implementation will effect on multiple elements in Newspaper theme? it’s useless then. I Just want exclude “Featured” Category so “Related Articles” section will serve better content for certain category.
Another way please?
Hello,
Well the related articles uses a common function with other elements. You will need coding skills to create conditions to only affect the related articles and i cannot offer any such solution You will have to hire a freelancer for it as we cannot offer any custom work at the moment.
Thank you for your understanding.