• Resolved holeywoodcandy

    (@holeywoodcandy)


    Hello,
    I was trying to enable the “auto-display content”. But the HTML code in the “markup” section seems to be disregarded and the text concatenates with the post content directly.

    e.g.
    <p><a href="mailto:%%email%%">Email</a></p>

    I don’t see any paragraph line break or hyperlink. The display is like
    Emailxxx
    where xxx is the post content.

    Has anyone come across the same situation before? Could anyone please advise?
    Thank you in advance!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Can you provide a URL where I can examine the issue on a live site? It is difficult to guess what might be happening.

    Thread Starter holeywoodcandy

    (@holeywoodcandy)

    Hi Jeff,

    Thank you so much for replying. I’d like to appreciate your time and work on this amazing plugin.

    I just checked my pages and found out that this issue only happens in the “latest posts” block when I select “show excerpt”.

    “show excerpt” – I would see “Emailxxx”
    “show full post” – I would see “xxx”

    I also want to clarify that your “auto-display content” works very well on the post itself.

    So to me “latest posts block” + “show excerpt” might cause an unexpected result. Please see the test URLs and advise.

    http://chinazhaotest.infinityfreeapp.com/
    http://chinazhaotest.infinityfreeapp.com/2021/03/03/title-submitted/

    Thank you so much again for your effort on this project.

    Plugin Author Jeff Starr

    (@specialk)

    Yeah that explains it. The Auto-Display settings work with post content only, it does not apply to shortcodes or individual blocks.

    Thread Starter holeywoodcandy

    (@holeywoodcandy)

    Hi Jeff,

    Thanks for replying.
    So does it sound weird to you that the block is able to excerpt any auto-display content? then to disregard the HTML code and concatenate the plain text?
    Or maybe the auto-display content should not be accessible at all for block excerpts?

    Plugin Author Jeff Starr

    (@specialk)

    Glad to help:

    1) “does it sound weird to you that the block is able to excerpt any auto-display content? then to disregard the HTML code and concatenate the plain text?”

    No, what is happening is that USP is adding the auto-display markup to the beginning of the post content. Then immediately after the auto-display markup is whatever you have set for the post content. The reverse happens if you choose to display images *after* the post content.

    2) “maybe the auto-display content should not be accessible at all for block excerpts?”

    The auto-display content is added either before or after the post content. In your case, the post content includes excerpt which removes all markup. So what you have happening is the image markup is displayed first, then the text from the post excerpt.

    Plugin Author Jeff Starr

    (@specialk)

    Hi @holeywoodcandy, just wanted to follow up with this. It’s been awhile with no reply, so I hope the issue is resolved? Or if there is anything I can do to help, please let me know. Thank you.

    Plugin Author Jeff Starr

    (@specialk)

    Hey @holeywoodcandy, I hope you got this sorted. It’s been awhile with no reply so gonna go ahead and mark this thread as resolved to help keep the forum organized. Feel free to post again with any further questions or feedback, Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘auto-display markup not working’ is closed to new replies.