-
AuthorPosts
-
January 3, 2014 at 9:31 pm #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.
January 4, 2014 at 7:24 am #205273Hey 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!
IsmaelJanuary 4, 2014 at 9:27 pm #205419Thanks 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.
January 5, 2014 at 6:51 am #205490January 5, 2014 at 11:52 pm #205703Yes, 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?
January 6, 2014 at 12:19 pm #205790Hey!
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,
PeterJanuary 8, 2014 at 8:38 am #206711That worked perfectly. Is there a way to include multiple page id’s?
-
AuthorPosts
- The topic ‘Display Portfolio based on Tag’ is closed to new replies.