WordPress.org

Forums

Hueman
[resolved] Creating category pages (4 posts)

  1. Indradhonu
    Member
    Posted 1 year ago #

    I want to make separate pages for each of category (e.g.--News, Music etc).
    I want to include featured posts slider in the category pages at the top.
    Then some writings such as describing the category.
    And then the respective posts come.
    How is that possible?

  2. Alexander Agnarson
    Member
    Theme Author

    Posted 1 year ago #

    You would need to edit archive.php and limit the edits to if( is_category() ). It's customization beyond what I can assist with though, but perhaps someone else can help out.

  3. Indradhonu
    Member
    Posted 1 year ago #

    First of all, thanks a lot for the awesome theme. I have edited the archive,php file in the child theme as you have said and the featured slider is also coming at the top of the each category. But, the featured posts are from all categories. I want to get featured posts slider from the respective category only at the respective category page; i.e. the category, say "Music", shoul contain featured posts slider comprising posts from "Music" category only.
    How to get that? Please help me.
    I'm hereby attaching the pastebin link for the modified archive.php file.

  4. Indradhonu
    Member
    Posted 1 year ago #

    EDIT:-
    I have been able to incorporate the same someway. Anyway, I can't create the "Category" pages; but it suffices the other needs i.e. description for each category(which is inbuilt), the respective post slider, and then the posts.
    I have edited the archive.php as per my custom needs.

    Thanks a lot Alx for your great tip--

    to edit archive.php and limit the edits to if( is_category() )

    Again, thanks for your great & awesome theme.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic