• Hi all,

    I’m currently working on a photography website.

    i’m trying to custom one of the plugins templates, which uses a custom post type.

    I have managed to alter the template to display most of the information i want BUT.

    I would like to load post content, but i only get shortcodes to display. I know i’m using the wrong piece of code <?php echo get_the_content() ?> but <?php the_content() ?> didn’t work, and i don’t know why.

    HELP?

    this screenshot may help

    thank you in advance

    • This topic was modified 3 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi there!

    That looks to me like it is the Visual Composer plugin. Or at least one possible component. It’s been quite some time since I’ve used that. Like 2+ years maybe 🤔

    Have you tried to see if that still happens with a different theme enabled yet? Perhaps a plugin was disabled by accident?

    Hard to really say as well since most on here don’t have that readily available either. If those don’t help you may want to reach out to the plugin’s developer about that.

    I’m having a similar issue (if I read your problem correctly).

    My shortcode is simply to display the login form as per instructions here.

    If I add the shortcode [wp_login_form] in Gutenburg, using the ‘Add shortcode block’, it simply renders the shortcode verbatim, including the square brackets instead of firing the php function to display the login form as expected.

    If I examine the page source, it gives me this:

    
    <div class='h-col'><div id="post-44" class="post-44 page type-page status-publish hentry">
      <div>
       <p>[wp_login_form]</p>
      </div>
    </div>

    Which isn’t quite what I want.

    Apologies if this isn’t what the OP was describing…

    ~ Dave

    Thread Starter stuartcr

    (@stuartcr)

    @jcastaneda without the Visual Composer (wpbakery), these shortcodes will not be interpreted into actual code. and i know that “<?php echo get_the_content() ?>” should only return uninterpreted code BUT “<?php the_content() ?>” doesn’t work either OR i using the function incorrectly.

    HELP?

    ps
    @dgcov i’m not sure your post is relevant, this is strictly about visual composer/wpbakery shodrtcodes not being interpreted into actual code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘post displaying shorcodes’ is closed to new replies.