Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    When a shortcode is appearing in the wrong place, it usually means you have “echo” in your code. A shortcode should return a string and not make any direct output.

    If this is a shortcode you’ve written, please post the code on pastebin.com and add a link to that here.

    Thread Starter alex991

    (@alex991)

    No,I put code from second post in function.php.Second post,last poster his code,this is his text- “I found a solution that works.I don’t know why it works but it does:” ,I put that code.
    I dont understand this in whole,can You give me some guidance how to do this?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    No,I put code from second post in function.php.Second post,last poster his code,this is his text- “I found a solution that works.I don’t know why it works but it does:” ,I put that code.

    The code makes no sense to me.

    Please tell me

    1. What are you trying to accomplish with this shortcode?

    2. What code did YOU put in YOUR functions.php file?

    Thread Starter alex991

    (@alex991)

    1.I have a shortcode that needs to be under some table but in the place I want it to appear, like 30 letters from beginning of the page.
    2.I put the code that makes no sense to you ??

    [bump moderated; please post more relevant information]

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I have tried to respond to you, alex, but you have yet to offer a response.

    What shortcode? Please show your code via a link to pastebin.com

    Thread Starter alex991

    (@alex991)

    This is what I inserted in function.php but I got an internal server error probably cause of code syntax – code .I need some shortcode to be at the place I want,That I want to achieve.This code I show you is from some post 6 years ago,I dont know is it working,as I said I got an internal error,and dont want to use it again before some expert advaice.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Your code doesn’t make sense.

    Please paste your shortcode’s code as you’ve put in in functions.php.

    Thread Starter alex991

    (@alex991)

    I dont know it now,I pasted code i showed you now,maybe I missed some letter or something.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    The code you pasted is just junk. Really. We’re now 10 messages into this and you haven’t told me yet what you’re really trying to do. Why not back up and start there.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How To a shortcode appears where i want it to be’ is closed to new replies.