• Resolved pikaland

    (@pikaland)


    Hi guys,

    The plugin works great, thank you!

    However, I’ve been running into this problem of not being able to have my title below the image (even when the option is checked under WP_Show_Posts). This happens when I insert the “Read more” tag in my post (so that I can preserve the formatting).

    For some reason it feels like once the Read More option is utilized in a post, the options under WPSP no longer seems to work.

    It feels like it’s a bug, but could you let me know if there’s a workaround to this please? (link to the page is as given)

    Any help would be most appreciated, thank you!

    • This topic was modified 3 years, 5 months ago by pikaland.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Elvin

    (@ejcabquina)

    Hi @pikaland

    That’s quite strange.

    Can you verify if you’re changing the settings of the right post list?

    I’ve tried replicating the issue but was unable to get the same behavior.

    Check this sandbox site’s sidebar – https://dev-generate-press.pantheonsite.io/ (see first post, “Totam nostrum et quam dolorem illum”)

    You can see that the featured image is below the title “Totam nostrum et quam dolorem illum”. Read more tag is placed under the bullet point “Enim temporibus id dignissimos”. Bullet point styling and font color is kept meaning formatting is working too.

    Can you check if the site has some sort of page caching?

    • This reply was modified 3 years, 5 months ago by Elvin.
    Thread Starter pikaland

    (@pikaland)

    Thanks for responding @ejcabquina!

    Cache was cleared and things only started getting wonky after I put in the “Read More” tag, so it was working before.

    Would you like to take a look at it yourself? Is there a way for me to send my website details for you to take a look? Perhaps you can email me here: amy{AT}pikaland.com.

    Plugin Support Elvin

    (@ejcabquina)

    You can send it in through our contact page – https://wpshowposts.com/contact/

    Please include a link to this topic so other support team members will have context in case they get to it first. ??

    Thread Starter pikaland

    (@pikaland)

    Sent, thank you @ejcabquina!

    Plugin Support Elvin

    (@ejcabquina)

    Ah I see what’s the issue here.

    The WPSP you’re pertaining to isn’t using a post thumbnail. https://share.getcloudapp.com/12uvnNYw

    The image you’re seeing is an actual content of the page as shown here – https://share.getcloudapp.com/L1urjpje – so it displays inside the content part of the post list rather than its own post image thumbnail container.

    You have this PHP snippet on your site which removes the first image within the content on single post pages but it doesn’t remove it as a post content on a WPSP post list.

    function remove_first_image ($content) {
    if (!is_page() && !is_feed() && !is_feed() && !is_home()) {
    $content = preg_replace("/<img[^>]+\>/i", "", $content, 1);
    } return $content;
    }
    add_filter('the_content', 'remove_first_image');

    Since you’re using GeneratePress, I suggest unticking display featured image on single posts pages instead of keeping this PHP snippet. (assuming the first image on your content will be your featured image)

    You then tick “Images” on WPSP list so WPSP displays a post image it can control. ??

    Thread Starter pikaland

    (@pikaland)

    Hi @ejcabquina,

    Thanks for the response!

    I did as you recommended, and what happened is that the front page now has 2 repeated images – presumably one from WPSP and another from the post itself.

    Can you advise me how I can make the second image go away (so that the title of the post stays below after the first image?)

    Thread Starter pikaland

    (@pikaland)

    Ps. This 2 images showing up happens only when I insert the “read more” tag, but if I remove the tag, then it defaults back to only one image being shown.

    Plugin Support Elvin

    (@ejcabquina)

    The quick and easy solution for this is to make the WPSP list content hidden w/ CSS.

    Try adding this:

    .wp-show-posts-entry-content img {
        display: none;
    }
    Thread Starter pikaland

    (@pikaland)

    That works great, thanks so much @ejcabquina for helping me with it! I was trying it on my own for weeks now. ??

    Plugin Support Elvin

    (@ejcabquina)

    No problem. Glad you finally got it sorted. ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to force site title below image on WP Show Post’ is closed to new replies.