Home Forums Real WordPress Theme Specific post category in a page

This topic contains 6 replies, has 2 voices, and was last updated by  BWSM 1 year, 8 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #8431

    victortai
    Participant

    Hi,

    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,
    vic

    #8432

    BWSM
    Keymaster

    Hi, thanks for using REAL

    please try to set “Select a Particular Post”, you could pickup a post as cover.

    Cheers!
    Bwsm – uiueux.com
    Twitter Facebook

    #8439

    victortai
    Participant

    Hi,

    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,
    vic

    #8440

    BWSM
    Keymaster

    Did 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'));

    #8441

    BWSM
    Keymaster

    'category_name'=>'featured'

    replaced featured as your category name

    #8444

    victortai
    Participant

    Hi,

    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,
    vic

    #8446

    BWSM
    Keymaster

    The quick solution is only for one page with cover.

    Plz wait the next update.

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

You must be logged in to reply to this topic.