JANUARY SALE: Directory Theme Now Only $49 -- Learn More

Ask the community

This is a community support forum where you can ask
questions and interact with other PremiumPress Customers.

How to each Blog Categories in different section


  • Surachai
    Newbie 36 points
    June 6, 2016 at 5:45 pm

    Only Blog Carousel that can use for Blog to show to homepage.

    Inside Blog: We have many categories.

    How can we select:

    Blog Categories 1 in area A,
    Blog Categories 2 in area B,
    Blog Categories 3 in area C

    suracahi


  • Josh
    Super Guru 13,885 points
    June 6, 2016 at 7:02 pm

    Hello Surachai,
    If using the Page builder you can use a query to display the blog post from different categories taxonomy=category&term=category-slug
    So in your case create 3 carousels using the Page Builder then add your query in each

    Attachments:
    You must be logged in to view attached files.

  • Surachai
    Newbie 36 points
    June 6, 2016 at 10:29 pm

    Hi Josh,

    Thank for information

    I need to add 3 categories in each areas. Then I need to put name of categories into your code.

    taxonomy=category&term=category-slug

    where do I need to replace categories name into code? For example I have category name:

    Categories 1: knowledge
    Categories 2: Information
    Categories 3: Techniques

    How can I replace knowledge, information, techniques in to your code.

    Remark: The existing one was shown below:
    orderby=post_date

    Surachai


  • Josh
    Super Guru 13,885 points
    June 7, 2016 at 7:10 pm

    Hello Surachai,
    In my above code replace ‘category-slug’ with your category slug

    Attachments:
    You must be logged in to view attached files.

  • Surachai
    Newbie 36 points
    June 8, 2016 at 1:25 pm

    Hi Josh,

    As your recommend to fill below codes on Slug.

    taxonomy=category&term=category-slug

    After I fill in and update, Slug will show like below:

    taxonomycategory-termcategory-slug

    or

    taxonomycategorytermcategory-slug-2

    Then I copied:

    taxonomy=category&term=category-slug

    fill in query (sample require).

    Result doesn’t work, Nothing changed.Please advise.

    surachai

    Attachments:
    You must be logged in to view attached files.

  • Josh
    Super Guru 13,885 points
    June 8, 2016 at 2:17 pm

    Hello Surachai,
    We are on totally different pages.Am referring to the Page Builder plugin (see my first post above ‘If using the Page builder you can use a query…’)Am using the Page Builder plugin to display different blog post from different categories.
    1.Go to Pages >All Pages >Create a page to display your categories.
    2.Assuming you have installed the Page Builder plugin,add the Add Object >8.Dynamic Content >Blog Carousel then add the query under the ‘Query (sample queries)’.See attached image 1
    The query to add is taxonomy=category&term=category-slug where you will replace ‘category-slug’ with your category slug.
    Since you want to display 3 blog carousel,repeat Step number 2 three times.
    3.Now,how to get your category slug.
    -Go to Blog Manger >Categories >on the category you want to get slug click ‘Quick Edit’ then copy the slug under the ‘slug’ field.See attached image 2
    4.Done :)

    Attachments:
    You must be logged in to view attached files.
    This reply was awarded the best answer by the topic poster.

  • Surachai
    Newbie 36 points
    June 8, 2016 at 3:48 pm

    Hello Josh,

    Thank you very much.It’s done.

    taxonomy=category&term=category-slug

    is

    taxonomy=category&term=THIS IS PUT SLUG NAME FROM POST CATEGORY.

    Excellent! It’s work

    Post Date Issue:
    On the other hand. If I do not want to show date of post. Is it possible to not show post date?? I can not find where to hide this post date?

    Please advise.

    surachai


  • Josh
    Super Guru 13,885 points
    June 8, 2016 at 4:00 pm

    Go to Appearance >Editor >content-post.php and remove the code <?php if ( !has_post_thumbnail() ) { the_date(); } ?>


  • Surachai
    Newbie 36 points
    June 9, 2016 at 4:00 am

    Hello Josh,

    I also like to separate Listing Categories in each area of homepage. I use [BUILDER] – PremiumPress Page Builder Plugin and select at:

    Dynamic Content>Listing>…

    How can I show only some categories in homepage??

    Such as Listing Category A: Building show on Home page area 1
    Category B: Hometown show on Home page area 2

    This issue is similar with Blog Post categories. Please advise

    surachai


  • Josh
    Super Guru 13,885 points
    June 9, 2016 at 7:23 pm

    Hello Surachai,
    To display listings from a particular category please use the query taxonomy=listing&term=category-slug
    Note:This time go to Listing Manager >Categories,to get your listing category slug

Viewing 10 posts - 1 through 10 (of 10 total)