Tagged: advance layout builder, ALB, Tags
-
AuthorPosts
-
August 19, 2016 at 5:03 pm #674826
Hi
I’m using the Advance Layout Builder for the posts.
That works fine except that I want the tags for the post to show.
What I want is to add the code in the file so that the person that makes the post only have to click in the tags field.I have searched for the answer but not got a good one.
https://kriesi.at/support/topic/how-to-show-tags-in-articles-when-layout-made-with-avia-builder/
This is the closest to my question, but no information about what file to edit.https://kriesi.at/support/topic/how-to-show-blog-meta-and-tags-with-avia-builder-in-blog-post/
This thread suggests using code block element, but there is no HTML code for current posts tags. And I want to use the inbuilt function for tags.https://kriesi.at/support/topic/customizeedit-single-post-page/
This suggest the loop-index.php file, but no matter what I do in that file it doesn’t affect the ABL posts.https://kriesi.at/support/topic/show-tags-under-blog-posts/
This on suggests add a third party plugin, but I don’t want to install a new plugin if I can solve it in another way.- This topic was modified 8 years, 4 months ago by enestedt. Reason: Links turned up as pictures
August 24, 2016 at 4:02 am #676727Hey enestedt,
Thank you for using Enfold.
Create a new shortcode in the functions.php file:
add_shortcode('avs_posts_tags', 'avs_posts_tags_callback'); function avs_posts_tags_callback() { //display tags ob_start(); the_tags( 'Tags: ', ', ', '<br />' ); $output = ob_get_clean(); return $output; }
Edit the page, add a text or code block then add this shortcode:
[avs_posts_tags]
Related thread: https://kriesi.at/support/topic/show-tags-under-blog-posts/#post-448772
Best regards,
IsmaelAugust 24, 2016 at 8:22 am #676850Hi Ismael
As I wrote in the first post I don’t want the writer of the post to do anything else than write the post and click in the tags field.What I want is to add the code in the file so that the person that makes the post only have to click in the tags field.
And the related thread you linked is the last link in my post
https://kriesi.at/support/topic/show-tags-under-blog-posts/
This on suggests add a third party plugin, but I don’t want to install a new plugin if I can solve it in another way.You have to know what file the ALB posts are using, or don’t you?
August 27, 2016 at 2:01 am #678371Hi,
All ALB enabled pages use
template-builder.php
. You can use theavf_template_builder_content
to show content on it:add_action('avf_template_builder_content', function() { echo 'something'; });
Best regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.