Okay
  Public Ticket #3025437
category meta to show on CPT
Closed

Comments

  •  14
    Laurie started the conversation

    this page is just example, but I have the meta data set toggled ON to Display Categories, but when it's a custom post type it doesn't actually pull it into the design on the front end.

    Maybe need to register it or something...or maybe it's a CPT setting.  Not sure- but would appreciate any help ;)

  •  1,877
    Judith replied

    Hi Laurie,

    Thanks for keeping in touch.

    Please send in your admin login credentials so that we can have a closer look at the issue.

    Thanks.

  •   Laurie replied privately
  •  8,839
  •  14
    Laurie replied

    Hm, will have to really concentrate on this one :)  Thanks for the links!  So, if I already used the custom post type and taxonomy, I basically just need to display the output of it, right?  i don't need to map it or I still do?

    I realize this might be outside of your support limits.  I understand if so.  Once I get it down, I'll be able to do as needed :)

    Furthermore, you already have the element Post Grid using a custom post type working perfectly, it's just the catgory that I want to show that isn't.  So, can't I just add code to adjust what's already there and make it work?

  •  8,839
    Tahir replied

    Hey Again,

    Yes, you can adjust the Post Grid Template using thie guide: https://themenectar.com/docs/salient/overriding-salient-wpbakery-element-template-files-through-a-child-theme/ . 

    Thanks


    ThemeNectar Support Team 

  •  14
    Laurie replied

    so i've copied it over to child theme, have a custom post type Practitioner, with a custom taxonomy "location" and just not sure where to add it in here :(.  It queries it just fine- aka pulls the information I am asking it to- yay!- but it's just not displaying the linkable category "location".

  •  8,839
    Tahir replied

    Hey Again,

    Please check: https://neuropunc.wpengine.com/wp-admin/post-new.php?post_type=page&wp-post-new-reload=true .

    The Location taxanomy needs to be added in here:

    8913596514.pngClick on Image to View Larger

    Thanks 


    ThemeNectar Support Team 

  •  14
    Laurie replied

    I think i'm not explaining it right :(  So, I just want United States to show in the filter, for example, then have the clickable category links also show like Florida, Massachusetts, etc as the toggle for the meta is turned ON to display.  Even if I select them all in the general tab (even though I don't want to filter by all of them) I at least want them to show as clickable links and additional info for the pracitioner.  Maybe this helps.

    3776221241.png


  •  8,839
    Tahir replied

    Hey Again,

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

    Thanks


    ThemeNectar Support Team 

  •  1,070
    ThemeNectar replied

    Hey Lauriesmile.png

    The "Display Categories" option won't work by default with custom queries. However, you can handle this via a filter in your child theme functions.php file. The filter nectar_post_grid_excerpt is called at the end of each post grid item and can be hooked to display any content desired. Here's an example you can paste into your child functions.php file:

    https://pastebin.com/VG966LcK

    Kind regards,

  •  14
    Laurie replied

    Yay you're AWESOME!  Thank you :)  I think I have just a little z-index issue I'll fix but it works so thanks!