Support » Theme: MH Magazine lite » post-navに記事のタイトルを表示させたい

  • Resolved jun_1234

    (@jun_1234)


    mh-functions.php

    次の記事、過去の記事
    の部分に、記事のタイトルを表示させたいのですが
    方法が分かりません。
    助けてください><

    /***** Post / Image Navigation *****/

    if ($attachment && $count == 1) {
    $permalink = get_permalink($parent_post);
    echo ‘<nav class=”post-nav-wrap clearfix” role=”navigation”>’ . “\n”;
    echo ‘<div class=”post-nav left”>’ . “\n”;
    echo ‘‘ . __(‘← Back to article’, ‘mhp’) . ‘‘;
    echo ‘</div>’ . “\n”;
    echo ‘</nav>’ . “\n”;
    } elseif (!$attachment || $attachment && $count > 1) {
    echo ‘<nav class=”post-nav-wrap clearfix” role=”navigation”>’ . “\n”;
    echo ‘<div class=”post-nav left”>’ . “\n”;
    if ($attachment) {
    previous_image_link(‘%link’, __(‘← Previous image’, ‘mhp’));
    } else {
    previous_post_link(‘%link’, __(‘← 過去の記事’, ‘mhp’));
    }
    echo ‘</div>’ . “\n”;
    echo ‘<div class=”post-nav post-nav-next right”>’ . “\n”;
    if ($attachment) {
    next_image_link(‘%link’, __(‘Next image →’, ‘mhp’));
    } else {
    next_post_link(‘%link’, __(‘次の記事 →’, ‘mhp’));
    }
    echo ‘</div>’ . “\n”;
    echo ‘</nav>’ . “\n”;

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘post-navに記事のタイトルを表示させたい’ is closed to new replies.