We're merging with GenerateBlocks! Learn more here.

[Resolved] How to move content to be above image

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support How to move content to be above image

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #5111
    Michael
    Participant

    Hi Tom,
    Could you please show me how I could move the excerpt to be above the image?
    I have set up a set of post lists on this page https://glowrecipes.com.au/
    Which is my test site for redeveloping my main site.
    I want the first Content (Content Type “excerpt” in this case) to be above the first image, like on this site (our main live site) https://mykoreankitchen.com/

    Thanks for your work on this and Generatepress.

    Michael

    #5130
    Tom
    Keymaster

    Hey Michael,

    Would this be for a specific list on a page with multiple lists?

    If so, you could try:

    1. Changing your shortcode to include a custom location:

    [wp_show_posts id="123" settings="image_location=below-content"]

    Then add this function:

    add_action( 'wpsp_after_content', function( $settings ) {
        if ( 'below-content' === $settings['image_location'] ) {
            wpsp_post_image( $settings );
        }
    } );
    #5132
    Michael
    Participant

    Thanks Tom, that worked.
    Note that I had to remove the ” before the “below-content” part.

    `[wp_show_posts id=”123″ settings=”image_location=below-content”]

    Michael

    #5142
    Tom
    Keymaster

    Ah, thanks for pointing that out! Glad it worked 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.