-
AuthorPosts
-
September 3, 2015 at 5:13 am #497482
Hello! Thanks as always for a wonderful theme. I’m working on a project now that shows just how flexible the theme is.
On my homepage I would like to use the blog layout module in order to show a single portfolio post from a given category.
I’m using portfolio items since they have the ability to do an excerpt.
The homepage has two main boxes so I’m using the category of home-right and home-left to display them where I want them. It’s all working quite elegantly.
However I’d like to be able to display a tag below the title of the portfolio post such as “courses”. Right now I can’t seem to make it appear. Adjusting the blog settings in the theme settings seems to turn on items like category or blog author but toggling on and off tag doesn’t seem to do anything.
I would love your thoughts. I’ll put a link to the site in the private comments.
September 3, 2015 at 4:38 pm #497770Hi scottmlogan!
It looks like your manually displaying the dates and other meta info in a textblock element. I think you should really be using regular posts for that. They will still display the excerpt so not really sure what you mean there.
Are you trying to change the category meta information to display tags instead?
Best regards,
ElliottSeptember 3, 2015 at 5:23 pm #497816Thanks for your quick reply.
The box on the left was the original design, where everything is manual. Check the box on the right. I’m using the blog element to display that.
I’d like to have the tags appear in the meta information.
Thanks.
September 4, 2015 at 3:38 pm #498445Hey!
Try changing line 166 in the /enfold/includes/loop-index.php file from this.
$excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id);
To this.
$excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('post_format'), get_post_type($the_id), $the_id);
Cheers!
ElliottSeptember 4, 2015 at 5:02 pm #498494Awesome! Thanks for the reply. I made that edit and the page is now producing an error:
Parse error: syntax error, unexpected T_IF, expecting T_STRING or T_VARIABLE or ‘$’ in /home/artacademy/public_html/wp-content/themes/taa/includes/loop-index.php on line 169
thanks again for your help.
September 7, 2015 at 8:22 am #499090Hi!
Did you copy the code right from your email? Please copy the code directly from the forum. Make sure that all symbols (parentheses, semicolons etc) are intact.
Best regards,
IsmaelSeptember 8, 2015 at 4:25 am #499634Thank you. I double checked and must have copied and pasted from the email. It is not throwing an error any longer however the tags are also not appearing.
Thanks again for your help.
September 8, 2015 at 3:41 pm #499941Hi!
Can you send us a WordPress login so we can take a closer look?
Cheers!
ElliottSeptember 8, 2015 at 3:49 pm #499945Sure! In private notes below.
September 8, 2015 at 5:06 pm #500006Hey!
I see a couple of columns and images, headings, and text which look like blog posts but they are actually created manually with the other content elements. You do not have a blog page setup either. Which page are you displaying the blog posts on? Send us a link to it please.
EDIT: Ok I see it now. The post meta is being hidden with CSS though. Add this to your custom CSS to display it.
.av-blog-meta-category-disabled .minor-meta.blog-categories, .av-blog-meta-category-disabled .text-sep-cat { display: block !important; }
Regards,
Elliott- This reply was modified 9 years, 2 months ago by Elliott.
September 9, 2015 at 2:07 pm #500431Thank you! The post meta is now appearing, however tags still aren’t.
I really appreciate all the help you guys are giving. Hopefully we can get the tags to appear as well.
September 9, 2015 at 4:52 pm #500541Hey!
You have the portfolio post tagged with “Courses” and that is what I am seeing on your homepage so it appears to be working fine. Try clearing your browser cache.
Best regards,
Elliott- This reply was modified 9 years, 2 months ago by Elliott.
September 9, 2015 at 5:09 pm #500573Thank you! That worked. Last question and if not no worries.
Is it possible to just display tags and not categories?
No worries if not. So appreciate your help.
September 10, 2015 at 3:41 pm #501093Hey!
Switch the line to this.
$excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('category','post_format'), get_post_type($the_id), $the_id);
Best regards,
Elliott -
AuthorPosts
- You must be logged in to reply to this topic.