WordPress.org

Ready to get started?Download WordPress

Forums

SubHeading
[resolved] Show Subheading at Custom Place (single.php) (3 posts)

  1. Axel Perschmann
    Member
    Posted 1 year ago #

    Hello,

    i'm using the newest Version of Subheadings (1.7) and the newest version of WordPress (Template: Montezuma)

    My wordpress:
    http://www.felskader-bw.de/FelskaderBW/news/2012/briancon-sommer-2012/

    I really like the idea behind Subheadings and using the automatic option to place the Subheading below the Title works perfect.
    But i want to place the Subheading at a custom place (To the right of the Posts Date, see wordpress link above!).

    Therefor i tried following codesnippets in the single.php:

    <?php the_subheading(); ?>

    <?php the_subheading('<p>', '</p>'); ?>

    <?php if (function_exists('the_subheading')) { the_subheading('<p>', '</p>'); } ?>

    get_the_subheading($postID);

    get_the_subheading(the_ID());

    get_the_subheading(863);

    non are working ... anybody any ideas?

    thanks,
    Axel

    http://wordpress.org/extend/plugins/subheading/

  2. Axel Perschmann
    Member
    Posted 1 year ago #

    Calling this i recognize "the_subheading()" does not exist:
    <?php if (!function_exists('the_subheading')) { failed } ?>

    But the Plugin is activated and the auto placement below the title works ... :-/

  3. Steve
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    This seems slightly odd, I installed the Montezuma theme directly from the theme directory and added the following immediately after the closing </h1> tag in single.php:

    <?php echo the_subheading(); ?>

    This seemed to work as expected and outputted the subheading assigned to the post.

    Does this differ from what you have tried?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.