Okay
  Public Ticket #3144128
Meta Categories on Blog
Closed

Comments

  •  15
    Laura started the conversation

    Hi again! I don't want my "Featured Post" category to show on the blog page. I have a different category set to Primary but it seems to be pulling based on alphabetical order. Any ideas?

    Thank you!

  •  2,958
    Andrew replied

    Hello Laura,

    Thank you for getting in touch with us.

    Please send in your admin login credentials so that we can assist with removing the featured post.

    Thank you.

  •   Laura replied privately
  •  8,839
    Tahir replied

    Hey Again,

    The "Primary" Category feature is added in by the Yoast SEO plugin therefore there is no support for it at the moment. 

    Escalating this to the developer to check if a quick fix is available. 

    Thanks 


    ThemeNectar Support Team 

  •  1,877
    Judith replied

    Hello Laura,

    I see you already deselected it here:

    4453963101.png

    Also the posts that have the featured post also are also paired with other categories as shown here:

    8259710396.png

    So that would explain why the post with the featured posts category appears eve after being deselected.

    Thanks.

  •  15
    Laura replied

    Thanks for looking into this!

    Do you have a different recommendation besides using a "Featured Post" category to show a select number of blogs in a different place?

    On the home page (https://3b0.4f6.myftpupload.com/) I have a featured blog section at the bottom which I've populated using that "Featured Post" category.

  •  1,070
    ThemeNectar replied

    Hey Laura, in order to incorporate the "Primary" category from Yoast into the frontend display, you would need to override the default category partial via your child theme. The file that you would need to copy from salient is: salient/includes/partials/blog/styles/masonry-classic-enhanced/post-categories.php

    When placing that file in your child theme, the same folder structure would need to be used in order for the override to take effect. So in your child theme, the file should be located at: salient-child/includes/partials/blog/styles/masonry-classic-enhanced/post-categories.php

    Once you have that overriding, you could use a method similar to the one outlined in this article https://whiteleydesigns.com/code/get-primary-term-if-yoast-seo-is-being-used/

    Here's an example of that being implemented into the post-cateogories.php file in salient:  https://pastebin.com/Byft4dgx

    Kind regards,

  •  15
    Laura replied

    This is such great and helpful info! I will configure this. Thank you!!