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)
  • jun_1234

    (@jun_1234)

    http://debate.co.jp/php/102

    ↑こんなふうに表示させたいです。

    jun_1234

    (@jun_1234)

    上記サイトの方法で解決しました!

    MH Themes

    (@mh-themes)

    Hi jun_1234,

    the language in this forum is english. Please ask your question again in english language – thanks.

    Please also be aware that this forum is for MH Magazine lite and the code you have posted seems to be from another theme. If you have questions regarding the MH Purity lite theme, please use this forum: MH Purity lite.

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