WordPress.org

Forums

[resolved] Schortcode (6 posts)

  1. michael000
    Member
    Posted 3 years ago #

    I have edited the upgrade.php to set up a set list of pages when a new user signs up, but having a problem with one of the pages its has a shortcode on it and nothing else but when is createing page is removing the shortcode and replacing [] with '' anyone know how to set it so that the shortcode works?

  2. Axel13
    Member
    Posted 3 years ago #

    In your code, perhaps you could try to replace the [] with html

    [ = [
    ] = ]

    GL!

  3. Axel13
    Member
    Posted 3 years ago #

    ooops :) This proves uit works :)

    [ = [
    ] = ]
  4. Axel13
    Member
    Posted 3 years ago #

    darn. It works too good.

    Check for the code here: http://www.w3schools.com/tags/ref_ascii.asp

  5. michael000
    Member
    Posted 3 years ago #

    managed to sort the '' problems but will not inserct shortcode into new page when creating site?

  6. Axel13
    Member
    Posted 3 years ago #

    Yes, I think all you need to do to get the shortcode is to replace the quare brackets with the html-code that replaces them.

    So, if you shortcode is f.ex. [somecode], you can write "& #91;somecode& #93;" without space after the &

    I hope this helps, I'm not entirely certain I understand your question well enough.

    If this would not work, perhaps you could try with a plugin that makes sure WP does not replace any code.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.