WordPress.org

Ready to get started?Download WordPress

Forums

Add new page and show excerpts from search topic eg. 'AFL' (4 posts)

  1. fbbr
    Member
    Posted 1 year ago #

    I want to add a new page and call it 'AFL'.

    On that page, I want all of my posts which feature 'AFL' content to show up as excerpts, similar to the way search results would appear. The page titles will be different to the Category titles. I do not have any category titles set up for "AFL'.

    Does anyone know how to do this?

    site: http://www.freebetreview.com.au/blog/

  2. cdukes
    Member
    Posted 1 year ago #

    Use AFL as a category, clone your category.php file, and call it category-afl.php to override. Make all your edits in category-afl.php.

  3. fbbr
    Member
    Posted 1 year ago #

    Thanks Copper, although I'm not really sure what you are suggesting? Do I need to go back and re-categorise all of my posts?

    The posts are usually weekly and therefore feature all types of sports. I'd rather not have the same post categorised into 4-5 different categories.

    Is there a way of having relevant AFL posts appear on the new page without using categories?

  4. cdukes
    Member
    Posted 1 year ago #

    Yes. If you want to group something, you have to designate what belongs in that group. In this case, list out your posts in the editor, check the ones that are AFL, and bulk add them to that category.

    Categories are intended to group content by its main ideas. It makes complete sense in many situations to use more than one category on a post...

    Other ways? You could do the same thing with a tag... You could also specifically style a search for "AFL" a certain way, but this would be so much more inefficient than just categorizing it...

Topic Closed

This topic has been closed to new replies.

About this Topic