Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #205149

    When creating Portfolio items in then Enfold theme I’m able to specify Tags. I like to use the Tags to specify the location of my projects. Is there a way that I could create a Portfolio page and display the items based on a particular tag? Currently, I’m only able to create Portfolio pages based on a Portfolio Category. Here is an example of my site: http://designinsidechicago.com/portfolio/

    Also, are the tags used anywhere else in the theme? It doesn’t look like they are displayed on the portfolio page.

    Thanks in advance for the help.

    #205273

    Hey Design!

    No, that is not possible with the Portfolio Grid element but you can do it using the Blog Posts element. On “Do you want to display blog posts?” option, choose “Display entries from a custom taxonomy”. “Which Entries?” should be “Post Tag”. Choose the Grid Layout for the “Blog Style” option to make it look like the Portfolio Grid layout somehow.

    Cheers!
    Ismael

    #205419

    Thanks for posting that solution Ismael. Is there a way to limit the blog posts to only show Portfolio items? Right now, it only shows all blog posts. Here is the sample page I am working on now which I want to show all of my interior design projects (Portfolio items) with the tag Logan Square (a neighborhood in Chicago).

    Interior Design projects in Logan Square

    • This reply was modified 10 years, 11 months ago by designinside.
    #205490

    Hi!

    Did you select the “Logan Square” tag under “Post Tag” option?

    Cheers!
    Ismael

    #205703

    Yes, I did. The module appears to be showing all Posts and doesn’t allow me to filter by Post Type (type = Portfolio Entry). Is there any way correct this?

    #205790

    Hey!

    Try to insert following code at the bottom of functions.php (or insert it into the child theme functions.php file):

    
    
    add_filter('avia_post_slide_query','avia_add_post_type_to_query', 10, 2);
    function avia_add_post_type_to_query($query, $params)
    {
    $id = get_the_ID();
    if(7503 == (int)$id){
     $query['post_type'] = 'portfolio';
    }
    return $query;
    }
    

    You maybe need to replace the id of 7503 with another page id. This entry: http://designinsidechicago.com/portfolio/logan-square-chicago-interior-design-project-photos/ has the id 7503.

    Regards,
    Peter

    #206711

    That worked perfectly. Is there a way to include multiple page id’s?

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Display Portfolio based on Tag’ is closed to new replies.