-
AuthorPosts
-
September 29, 2016 at 1:55 pm #693090
Please see this post. The title and its meta data are missing from the post. A Featured Image of the right photo has been set and “Don’t display image on single post” ticked. I am using the JS code provided by you/Support in functions.php to move the Featured Image below the Title for all posts, but as can be seen in this post the Title is not displayed at all.
When that post listed in a Blog Post on this page, there is no excerpt shown.
Can you please tell me what’s wrong and why the various elements – title, meta, excerpt – are not showing?
October 3, 2016 at 4:30 am #694398Hey zimbo,
Thank you for using Enfold.
Did you use the advance layout builder for this post? If yes, the title, post meta data, comments and other default elements will not be included in the template. Please post the login details so that we can check the settings.
Best regards,
IsmaelOctober 3, 2016 at 2:06 pm #694612Yes the post was created using ALB. I just realised the comments are missing as well. Username in private content.
Why are those elements not displayed? More to the point, how can I get them to show?
October 3, 2016 at 2:25 pm #694630Hey!
Please add your title, comments and social share buttons elements manually under Content Elements of ALB.
Regards,
YigitOctober 3, 2016 at 3:47 pm #694675I assume I use a Text Box to set the title as H1?
But how do I get the post meta data to show under the title?
I do not use Enfold’s Sharing links but Jetpack’s Sharing app and this is normally displayed right after the post content and before the comments, however on the ‘ALB-created post’ the sharing links are shown after the comments section – how do I get the Jetpack share links to follow the order of all other posts on the site i.e. before the comments?
I also Jetpack’s Related Posts feature on all posts – see an example here if you’re not familiar with it, but this is not showing at all on the ‘ALB-created post’ – how do I get it to show, as on all other posts?
October 6, 2016 at 9:20 am #695943Hey!
But how do I get the post meta data to show under the title?
1.) There is no element for that so you have to create a shortcode or a new element.
// https://kriesi.at/support/topic/missing-category-info-in-post-meta-infos-using-alb
// https://kriesi.at/support/topic/using-alb-with-custom-post-type-and-meta-information/#post-5801442.) Please provide a link to the actual post.
3.) Use the “[jetpack-related-posts]” shortcode in the template-builder.php file or add it in the builder’s text or code block.
Regards,
IsmaelOctober 11, 2016 at 7:03 pm #698005Sorry been away… here’s the post link again.
1. I’ve got this working using @Josue’s code from the second link above however the categories are not showing – here’s the code I’m using, I’ve removed the comment count section.
function custom_shortcode_func() { ob_start(); echo "<span class='post-meta-infos'>"; echo "<time class='date-container minor-meta updated'>".get_the_time(get_option('date_format'))."</time>"; echo "<span class='text-sep text-sep-date'>/</span>"; if(!empty($cats)) { echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." "; echo $cats; echo '</span><span class="text-sep text-sep-cat">/</span>'; } echo '<span class="blog-author minor-meta">'.__('by','avia_framework')." "; echo '<span class="entry-author-link" '.avia_markup_helper(array('context' => 'author_name','echo'=>false)).'>'; echo '<span class="vcard author"><span class="fn">'; the_author_posts_link(); echo '</span></span>'; echo '</span>'; echo '</span>'; echo '</span>'; $output = ob_get_clean(); return $output; } add_shortcode('the_post_meta', 'custom_shortcode_func');
I tried ‘echo $cats’ on its own but nothing shows, implying $cats is empty. Is the problem how does $cats get populated – shouldn’t there be a wp_get_post_categories function call or something?
2. If you look at any other post you’ll see the comments are last but on this ALB-created post they are before the share link and Related Posts. I suspect there might not be anything that can be done about this because the Comments are added as a content element in the post.
3. Related Posts are now appearing somehow, I didn’t do anything, must have been a blip on my part! So sorted.
October 16, 2016 at 2:55 am #699428Hi,
1.) A modified code was provided here. https://kriesi.at/support/topic/missing-category-info-in-post-meta-infos-using-alb/#post-589014
2.) Yes, unfortunately, the share link probably hooks (https://developer.wordpress.org/reference/functions/do_action/) on to something but that hook is not available in the template-builder.php file.
3.) Great! Glad it is working.
Best regards,
IsmaelOctober 26, 2016 at 7:26 pm #704491Thanks, #1 working now.
October 30, 2016 at 6:31 am #705759 -
AuthorPosts
- The topic ‘No title displayed on post, excerpt missing on blog post’ is closed to new replies.