[Support request] show data below post title

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support show data below post title

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17747
    Davide
    Participant

    Hi, I’ve a question, is it possible to put the post-data below the post title?
    thanks to this thread https://wpshowposts.com/support/topic/show-terms-above-post-title/ I already moved the category above the title, now I’d like to the data from under the post excerpt to just below the title.

    thank you!
    Dave

    #17757
    Tom
    Keymaster

    Hi there,

    You should be able to set the meta location in the settings: https://docs.wpshowposts.com/article/meta-overview/

    Let me know 🙂

    #17774
    Davide
    Participant

    Hi Tom, thank you.
    But like I wrote, I’m already using this method https://wpshowposts.com/support/topic/show-terms-above-post-title/ to show the category above the post title, if I select the post date location as “below title” it’ll be shown on top like the category.

    What I’d like to achieve is

    category
    post title
    data

    any hint? (or is there any “advanced” documentation?
    thank you!
    Davide

    #17792
    Tom
    Keymaster

    It may be better to manually place the categories before the title.

    Let’s try:

    1. Remove the code you added to move the categories.
    2. Use the options I pointed to in the previous post.
    3. Manually add the categories before the title:

    add_action( 'wpsp_before_title', function( $settings ) {
        if ( $settings[ 'include_terms' ] ) {
            printf( '<span class="wp-show-posts-terms wp-show-posts-meta">%1$s</span>',
                get_the_term_list( get_the_ID(), $settings[ 'taxonomy' ], '', apply_filters( 'wpsp_term_separator', ', ' ) )
            );
        }
    } );
    #17844
    Davide
    Participant

    Hi Tom, thank you.
    Should I change something in the piece of code you posted? Because if I keep it like this, it’s not working.

    thank you!
    Davide

    #17856
    Tom
    Keymaster

    You shouldn’t need to change anything – is anything appearing before your title?

    #17861
    Davide
    Participant

    nope,
    it shows:

    post title
    post date | categories

    Davide

    #17897
    Tom
    Keymaster
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.