Categories with posts not showing on posts page

This topic contains 8 replies, has 3 voices, and was last updated by  Olivier 1 month ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #26675

    P Philips
    Participant
    • 5 Posts
    @pieter

    Hi,
    The categories in the contentmenu containinig messages are not showing on the posts page.
    Apart from not showing these categories I want to be able to control what categories show up here. Can you help out please?

    #26700

    Manathan
    Keymaster
    • 1450 Posts
    @themodactyl
    Themosaurus Support

    Hi @pieter,

    Thank you for buying our theme. We hope it will meet all your expectations! 🙂

    I’m sorry, I don’t quite understand the first part of your issue.

    If you want to choose specifically which categories are showing there, note that you can’t do it easily. This is standard behavior with our theme, I’m afraid.

    As this is not breaking the page, changing this is considered customization work. Unfortunately, this is a service that we do not provide.

    We only share snippet only to solve issues with our theme. Any further request for CSS snippets will have to be part of a defect that needs to be fixed urgently. No snippets will be shared otherwise.

    If you want to go further with the customization of your website, we advise that you hire a freelancer to do it for you.

    If you’re on a tight budget, we recommend you to require the services from Envato Studio freelancers (https://studio.envato.com/explore/websites-programming). This web platform gives you access to developers who have already experience with theme customizations, and for very competitive prices.

    Thank you for your understanding.

    #26703

    P Philips
    Participant
    • 5 Posts
    @pieter

    YEah, I have been doing WordPress for about 9 years now so I’ll take care of the 2nd part of the question I guess with some functions code, but as per your answer how do you change the categories you want to see in the content menu on the blog(posts page)? I don’t see anywhere where I can change this. Where and how can I do this?

    #26717

    Manathan
    Keymaster
    • 1450 Posts
    @themodactyl
    Themosaurus Support

    Hi @pieter,

    Unfortunately, you can’t choose specifically which categories are showing there manually.

    The only way to get what you want requires the use of php. If you want to do it anyway, I can send you the hook you will need to use and the function to edit. However, I won’t send you the exact snippet to use because, as I said in my previous answer, this is considered customization work. Unfortunately, this is a service that we do not provide.

    I’m waiting for your feedback.

    Cheers,

    #26748

    P Philips
    Participant
    • 5 Posts
    @pieter

    Yeah that’s pretty much standard anyway, yes if you can give the hook that is all I need thank you!

    #26757

    P Philips
    Participant
    • 5 Posts
    @pieter

    It would be an idea to provide an admin customisation feature for this simple setting so that others can benefit from choosing what is shown on this page as well.
    I am sure that most people want to make that choice here.

    #26787

    Olivier
    Moderator
    • 1843 Posts
    @themosaurusrex
    Themosaurus Support

    Hi @pieter!

    Thank you for your feedback.

    The action you’re looking for is gwangi_before_posts. The function gwangi_grimlock_before_posts is defined and hooked to this action in the following files:
    YOUR-SITE/wp-content/themes/gwangi/inc/grimlock/grimlock-template-functions.php
    YOUR-SITE/wp-content/themes/gwangi/inc/grimlock/grimlock-template-hooks.php

    This function wraps another action: grimlock_terms which is responsible for dynamically generating the horizontal category navigation menu. You can pass very similar arguments to this action as you would do with get_terms (https://developer.wordpress.org/reference/functions/get_terms/) as it is ultimately triggered to fetch taxonomy terms.

    To add your custom code to your site, we recommend that you use the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:

    Adding Custom PHP Without Changing Your Child Theme

    Please finally note that I took the liberty to move this topic to our Feature Requests forum. As your idea could be a nice addition to our theme, we will implement this feature if other community members upvote your request.

    We’ll keep you informed. Thank you very much for contributing to this theme!

    Best regards,

    #26956

    P Philips
    Participant
    • 5 Posts
    @pieter

    That’s a really good reply thanks Olivier!!

    #26970

    Olivier
    Moderator
    • 1843 Posts
    @themosaurusrex
    Themosaurus Support

    You’re welcome @pieter ! 😀

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

You must be logged in to reply to this topic.