Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #19493

    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,

    #103919

    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,

    Ismael

    #103920

    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?

    #103921

    Hi,

    I thought you want to show the titles for your related entries?

    Regards,

    Ismael

    #103922

    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,

    #103923

    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

    #103924

    Nop, the links are ok.

    Which error do you read?

    #103925

    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.

    #103926

    I’ve disabled a WP plugin “Better WP Security” :/, you can try it now? sorry

    #103927

    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

    #103928

    Thank you,

    I made a new post and this shows the related entries with its titles.

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Related entries doesn't show title post’ is closed to new replies.