Filter category in blog section

Hi.

Sorry for my bad English

How can you filter in the blog section to show me only one category of the entries?
I have 3 categories and I just want to show one of them.
Thank you

Tagged:

Comments

  • Hi tabi13

    Yes this is possible but with little code customization. Let me know which blog template you are using . so we can share you customized code.

    Note: But remember with that template always post show with that one category.

    Thanks
  • Hi Abhishek.
    I'm using appointment pro template.
    Thanks.

  • Hi tabi13

    I think there is some confusion. I am asking about you blog page template please have a look in screenshot for more clear http://prntscr.com/ijxp19

    Thanks
    A


  • Hi Abhishek.
    I'm doing 2 blog pages:
    Bog Masonry and blog left sidebar

    Thanks
  • Hi mgregoire83

    It requires core code customize so i will suggest you to add customize code  in child theme you can read more about child theme here https://codex.wordpress.org/Child_Themes

    Now Follow given instructions.

    1. Create a child theme you can use this plugin to create child theme https://wordpress.org/plugins/orbisius-child-theme-creator/
    /* For Blog left side bar*/

    2. Go to in your theme directory and copy blog-left-sidebar and now go to in your child theme directory and paste here blog-left-sidebar file.

    3. Find attached code in https://pastebin.com/3TK37QxU and replace in your child theme blog-left-sidebar file.

    4. Go to in your child theme  blog-left-sidebar.php and find line number 22 and replace your category id wit your category id 

    Have a look in screen shot http://prntscr.com/ijy7bl

    4. Activate your child theme 

    Let me know did it work.

    Thanks
    A.
  • /* For Blog left side bar*/

    1. Go to in your theme directory and copy blog-masonry.php and now go to in your child theme directory and paste here .php file.

    2. Find attached code in https://pastebin.com/csBJVXVQ and replace in your child theme blog-left-sidebar.php file.

    3. Go to in your child theme  blog-left-sidebar.php and find line number 18 and replace your category id wit your category id 

    Have a look in screen shot http://prntscr.com/ijy8t6


    Let me know did it work.

    Thanks
    A.
Sign In or Register to comment.