• Hi. I’m using the latest Code Snippet on latest WP (5.92). My snippet extracts latest posts from sub sites. I then put the short code into a page where I need the result to be shown.

    It however ignores the position where I put it and always goes to the top of page. Is there anyway to make it stay in place? Or that is what it is.

    Thanks in advance.

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

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    I think the problem here is you are directly outputting the content of your shortcode (e.g. with echo), whereas you should be returning it from the function instead.

    If you can’t manage to store your output in a variable for returning for whatever reason, I recommend the use of PHP output buffering. Let me know if you’d like an example.

Viewing 1 replies (of 1 total)
  • The topic ‘How to position the result’ is closed to new replies.