Home › Forums › Real WordPress Theme › Specific post category in a page
- This topic has 6 replies, 2 voices, and was last updated 10 years, 8 months ago by
SeaTheme.
-
AuthorPosts
-
September 25, 2015 at 6:13 am #8431
victortai
ParticipantHi,
I created a page, which suppose to display only specific category of the posts.
For “Select Blog Category” option, I select 1 specific category.
For “Post for Cover” option, I set as “Show the Latest Post”.
However the latest post on this page always the last post, regardless of any category.Please let me know how can I provide the login for you so that you can take a look.
Cheers.
regards,
vicSeptember 26, 2015 at 11:30 am #8432Hi, thanks for using REAL
please try to set “Select a Particular Post”, you could pickup a post as cover.
Cheers!
Bwsm – uiueux.com
September 26, 2015 at 5:53 pm #8439victortai
ParticipantHi,
It mean I have to manually select a post as cover. I have to do that everytime I publish a new post. How do I select a latest post from that particular category?
Don’t you think display a latest post as cover, regardless of any category, even I already select a category – is very wrong?
regards,
vicSeptember 27, 2015 at 11:02 am #8440Did you mean that set category for “Show the Latest Post”?
We’ll make some study to add this option.
There is a quick solution:
login FTP, find:
/functions/interface/interface-functions.php
edit line 972:
$get_posts = get_posts('posts_per_page=1');
update to:
$get_posts = get_posts( array('posts_per_page'=>1,'category_name'=>'featured'));September 27, 2015 at 11:07 am #8441'category_name'=>'featured'replaced
featuredas your category nameSeptember 27, 2015 at 5:28 pm #8444victortai
ParticipantHi,
Thanks for the reply. The above method will not work, as it can’t be hard code.
Take below as example:
I have 3 post category: Travel, Photography, Foods.
I created 3 pages, each page display the posts from specific category. Each page using the option “Show the Latest Post”.
Now, I publish a new post with category Photography.I click on page for Travel, the cover I see is the latest post from Photography – This is very wrong. Reader supposed to see only latest post from Travel.
I click on page for Photography, the cover I see is the latest post from Photography – This is ok.
I click on page for Foods, the cover I see is the latest post from Photography – This is very wrong. Reader supposed to see only latest post from Foods.Hence this is the problem I am facing. Hope you can fix it soon.
regards,
vicSeptember 28, 2015 at 1:15 am #8446The quick solution is only for one page with cover.
Plz wait the next update.
-
AuthorPosts
- You must be logged in to reply to this topic.
