• This is my site:https://globaldefensejournal.org/category/aviation/

    As you can see, I am unable to put any “Slider” as its a category page which is very simple. Note I have no experience in coding but please do tell me where to put the code.

    If it was a page I would have more options.

    But how do I have all posts from a particular category having the all the functionality as Slider, Image Box etc appear in one page?

    Note: Aviation Category ID is 4.

Viewing 1 replies (of 1 total)
  • There are multiple ways to do this.
    If you want a clildren of a page, you can install PHP Code for posts. It enables you to save code snippets in the backend and then use the snippets as shortcodes in your posts/pages.

    Save this as a code snippet:

    <?php
    	$children = wp_list_pages('title_li=&child_of=4'); //4 is the Cat ID
    ?>

    And it will give you this shortcode: [php snippet=1]. Then you edit the desired page, for example: https://neomarket.ir//page-to-show-the-category-posts

    In the edit page, you paste the code snippet shortcode. This way, all the children will be published in that page.

    If the pages are not clildren of another page, and you just need the posts that have a certain category, you can install List category posts. It will enable you to use a short code like: [catlist id=4] inside any page or post. And all the posts with such category will be listed.

    But, if you want to use the children inside a slider, I would suggest to use a post slider plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘A category in one page?’ is closed to new replies.