Okay
  Public Ticket #3044829
Display portfolio categories
Closed

Comments

  •  5
    nadesignllc started the conversation

    Haven't been able to find this in the knowledgeable, but is there a shortcode to display the portfolio categories? I'm using shortcodes to build in the Custom Content Grid Item Content, so I'd like to display the category names so users can see them without having to use filters.

  •  8,839
    Tahir replied

    Hey Again,

    This should help customize the Portfolio Element: https://themenectar.com/docs/salient/overriding-salient-wpbakery-element-template-files-through-a-child-theme/ . 

    Also have you tried using the "Post Grid" Page Element ?. 

    Thanks 


    ThemeNectar Support Team 

  •  5
    nadesignllc replied

    Yes, but post grid is not what I want to use. I simply just want the ability to display the categories names where I please, and I can do so via PHP code snippet insertion.

  •  8,839
    Tahir replied

    In that case the best option would be to override the Portfolio Page Element using the guide earlier provided.

    Thanks


    ThemeNectar Support Team 

  •  5
    nadesignllc replied

    I do not see the portfolio file in there, assuming it's in the portfolio plugin, but I don't know which file to look at.

    There is no way to use something like <?php echo esc_attr( $category ); ?> to just display the category names? I don't need to override a template since I'm using shortcodes to make a layout in the custom content box in the portfolio section.

  •  8,839
    Tahir replied

    You would have to first create a shortcode that shows the Category and then add it to the Post Content area. 

    This might help: https://www.wpbeginner.com/wp-tutorials/how-to-add-a-shortcode-in-wordpress/ . 

    Thanks


    ThemeNectar Support Team