WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Shortcode Issue in Content (5 posts)

  1. BilliardGreg
    Member
    Posted 1 year ago #

    Ok so I am writing a plugin with multiple shortcodes in use. Inside the functions I am using the proper return html syntax. Yet for some reason some of the shortcodes all that is happening is output of the actual shortcode in the content. I have even tested with calling two shortcodes on one page and put the one that hasnt been working first on the page and the second one is showing correctly?

    If anyone has run into this issue before and/or might know of a solution it would be greatly appreciated.

    Thanks

  2. riversatile
    Member
    Posted 1 year ago #

    I had a similar issue since WP 3.5 update...
    I had created [clear-both] shortcode to output :
    <div style="clear:both;"></div>
    This allow me to render content just after an image, this add a return line feed after the image. So the text goes at the bottom.

    Since WP 3.5 update, the shortcode [clear-both] appeared in the content instead of the output code.
    I remove the "-" from the shortcode in my functions.php, then the shortcode works.

    If this could help you...

  3. BilliardGreg
    Member
    Posted 1 year ago #

    the short code in question is all loeercase with no punxuatiin. i have even tried making it more but that of course didnt work.

  4. BilliardGreg
    Member
    Posted 1 year ago #

    more simplr that is.

  5. BilliardGreg
    Member
    Posted 1 year ago #

    Not sure why it wasn't working but in trying to debug it I found that there where a couple extra files left in the folder that should not of been, as well as in testing I duplicated the function and shortcode call. So I fixed those issues and it appears to be working the way it should now.

Topic Closed

This topic has been closed to new replies.

About this Topic