Hi,
This is my work-in-progress post: http://nuevo.claseviva.com/seguimiento-de-materiales-de-e-learning-como-publicar-en-aicc/
Is there any way to view the titles in Related Entries at the bottom?
Thanks in advance,
Related entries doesn't show title post
11 posts from 3 voices-
Posted 4 months ago #
-
Hi,
Open includes > related-posts.php and find this code
$output .= "<div class='$post_class $extra relThumb relThumb".$count." post-format-".$format." flex_column'>\n"; $output .= "<a href='".get_permalink()."' class='relThumWrap noLightbox'>\n"; $output .= "<span class='related_image_wrap'>"; $output .= $image; $output .= "</span>\n"; $output .= avia_title(array('title'=>avia_backend_truncate(get_the_title(), 40, " "), 'class'=>'portfolio-title', 'html' => "<div class='{class} title_container'><h1 class='main-title'>{title}</h1></div>"), $post->ID); $output .= "\n</a>"; $output .= "</div><!-- end .relThumb -->\n";Replace it with this
$output .= "<div class='$post_class $extra relThumb relThumb".$count." post-format-".$format." flex_column'>\n"; $output .= "<a href='".get_permalink()."' class='relThumWrap noLightbox'>\n"; $output .= "<span class='related_image_wrap'>"; $output .= $image; $output .= "</span>\n"; $output .= "<div class='small title_container'>"; $output .= get_the_title(); $output .= "</div>"; $output .= "\n</a>"; $output .= "</div><!-- end .relThumb -->\n";Also, add this on your custom.css
small.title_container { margin-top: 5px; border: none; font-size: 9px; }Regards,
IsmaelPosted 4 months ago # -
Ismael,
Thank you very much, but... why this post shows the titles in "Related Entries"?
http://nuevo.claseviva.com/html-styles/
It's the same blog, same include>related-posts.php, isn't it?Posted 4 months ago # -
Hi,
I thought you want to show the titles for your related entries?
Regards,
IsmaelPosted 4 months ago # -
Yes, that's the issue. But the titles show in some posts, not in another ones.
That's why I ask you: is the post-type the reason? Why we view Related-Entries titles in the second post but not in the first one?
Thanks,Posted 4 months ago # -
Hi ftrasi,
I'm just getting an error when I try to view the site now. Was the URL moved or can you post a link to the posts where the change isn't taking place?
Regards,
Devin
Posted 4 months ago # -
Nop, the links are ok.
Which error do you read?Posted 4 months ago # -
Each time I try and pull up the site it loads for one or two pages but then it comes up with just "error".
I'm not sure whats going on but I'm not able to consistently pull up your site in any browser.
Posted 3 months ago # -
I've disabled a WP plugin "Better WP Security" :/, you can try it now? sorry
Posted 3 months ago # -
I'm only getting one single post to not display the titles but I think there may be something wrong with that posts entry in the database. The permalink is the first line of the post instead of the title and it might have gotten slightly corrupted.
Try making new posts and if any of those don't have the titles after the change then it would be an issue but I don't see how it could be possible since there is only the one file to display the output.
Regards,
Devin
Posted 3 months ago # -
Thank you,
I made a new post and this shows the related entries with its titles.Posted 3 months ago #
Topic Closed
This topic has been closed to new replies.














