• Hello
    I’m trying to write a simple wordpress theme.
    I’m seeing to be enclosing content in straight quotes on it’s own and I’d like it not to do that.
    I’ve looked around a bit here and online and added the following lines to my functions.php file:

    remove_filter(‘the_content’, ‘wptexturize’);
    remove_filter(‘the_content’, ‘wpautop’);

    it still seems to continue to enclose the post content there, though

    I’ve also tried to write an extremely simple plugin:

    /*
    Plugin Name: portfolioShow
    Description: shows portfolio
    Version: 1.0
    Author: Keith Bonarrigo
    Author URI: http://example.com/
    */
    function get_port(){
    return “it worked!”;
    }
    add_shortcode(‘port’, ‘get_port’);

    The plugin is activated but it has the same effect.
    You can see this text close to the top of the page here:
    http://s121744933.onlinehome.us/wordpressAngular/

    and when I type [port] it renders those very characters in quotes, rather than the correct text.

    I’m (obviously) new to this and I’d really appreciate some help here

    thanks very much

Viewing 4 replies - 1 through 4 (of 4 total)
  • Where are you inserting the shortcode [port] ?
    Have you tried adding the shortcode to the post content? Example, before…

    I offer 11+ years

    Thread Starter keith_the_kid

    (@keith_the_kid)

    Thank you very much for helping me.

    Yes, I add the exact shortcode characters [port] above that post content you mentioned above. the next line – ‘My name is Keith Bonarrigo’ is enclosed in a header tag and it does seem to render that correctly.

    thanks again

    No problem.

    Thread Starter keith_the_kid

    (@keith_the_kid)

    sorry but just to clarify…the header tag below is rendering correctly but the shortcode is not. I’m still unable to get that to render – instead it is just the characters.

    thanks very much

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

The topic ‘Remove straight quotes from content and code’ is closed to new replies.