• Resolved shapovaloval

    (@shapovaloval)


    Hi there,

    I have an issue with the title of the post, it is long as entire post.

    I want to make it shorter.

    Can someone please tell me how to do this or what the code is?

    Thank you

    Mila

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • It looks like the post content is being output in the “Posted On” bar. Have you changed any of the code?

    Search single.php and index.php for class="meta". In there I assume there’s the_content(); instead of the relevant post meta functions.

    Have a look and let me know how you get on.

    Thread Starter shapovaloval

    (@shapovaloval)

    Yes, I’ve changed the code of Q Translate plugin, previously I couldn’t make any post at all as I had an error.

    Thread Starter shapovaloval

    (@shapovaloval)

    <?php get_header(); ?>

    <div id=”page” class=”border-top clearfix”>

    <div class=”color-hr2″></div>

    <div id=”subtitle”>
    <h2><span><?php the_title(); ?>.</span> <?php echo get_post_meta( get_the_ID(), ‘minti_subtitle’, true ); ?></h2>
    </div>

    <div id=”content-part”>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div <?php post_class(‘single-post’) ?> id=”post-<?php the_ID(); ?>”>

    <?php if ( has_post_thumbnail()) { ?>
    <div class=”big-post-thumb”>
    <?php the_post_thumbnail(‘single-thumb’); ?>
    </div>
    <?php } ?>

    <h2 class=”top-margin”><?php the_title(); ?></h2>

    <div class=”meta”>
    <?php _e(‘Posted on’, ‘framework’); ?> <?php the_date(); ?> · <?php _e(‘Posted in’, ‘framework’); ?> <?php the_category(‘, ‘) ?>
    </div>

    <div class=”entry”>

    <?php the_content(); ?>

    <?php wp_link_pages(array(‘before’ => ‘Pages: ‘, ‘next_or_number’ => ‘number’)); ?>

    </div>

    <div class=”meta-tags”>
    <?php the_tags( ”, ”, ”); ?>
    </div>

    </div>

    <?php comments_template(); ?>

    <?php endwhile; endif; ?>

    </div>

    <div id=”sidebar” class=”sidebar-right”>
    <?php get_sidebar(); ?>
    </div>

    </div>

    <?php get_footer(); ?>

    Thread Starter shapovaloval

    (@shapovaloval)

    Hi @ashbodev,

    can you please advice me on my actions? I’m a beginner and I am a bit lost.

    Thanks

    Thread Starter shapovaloval

    (@shapovaloval)

    Hi @ashbodev,
    Resolved, in this line I had an issue: return $before->post_content.strftime($format, $date).$after; I have changed content word to meta and it works.
    Thank you!

    • This reply was modified 6 years, 9 months ago by shapovaloval.

    Hi @shapovaloval, sorry about the late reply. Just got back after weekend!

    Glad your issue is fixed and that it was simple to change ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Post Title’ is closed to new replies.