• Resolved davidjor

    (@davidjor)


    Hi …

    I created a Twenty Ten child theme, I have a custom menu. The menu includes the categories. The categories are Home, Food, Drinks. I need to classify post regarding the categories, and Home SHOULD only show the posts that categorize as Home, and if you choose food you see only food posts…etc.

    I need to know which code should i use and where !

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    (@esmi)

    You would need to add a custom query to your child’s index.php template file to either include only the Home category posts or to exclude the posts in the other categories.

    Thread Starter davidjor

    (@davidjor)

    Esmi

    I have a folder that only has style.css, and functions.php. so should i cope index.php file inside the child folder then start from there? or which index.php should i use?

    esmi

    (@esmi)

    Yes – copy the parent’s index.php (or appropriate) template file into the child and then customise the copy.

    Thread Starter davidjor

    (@davidjor)

    i will copy that file
    htdocs -> WP -> wp-content -> themes -> twentyten

    is that correct?

    esmi

    (@esmi)

    That sounds about right.

    Thread Starter davidjor

    (@davidjor)

    It’s working now….

    thanks.

    esmi

    (@esmi)

    No problem 🙂

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

The topic ‘Show Home Posts onlu’ is closed to new replies.