• Justin Greer

    (@justingreerbbi)


    Ok So I have been looking around for an answer here for some time and really an coming up short of a solution. So here is the issue!

    I created a custom theme. I am using no plugins on it. I installed contact form 7 and set up a contact form. I ten placed the shortcode in the editor for the page.

    WordPress is not phrasing the shortcode and just displaying it as the shortcode tag.

    Here is what I have done to track down the issue.

    – Created a very basic blank theme and tried shortcode using the editor for a page. This still just output the shortcode tag

Viewing 1 replies (of 1 total)
  • Thread Starter Justin Greer

    (@justingreerbbi)

    Ok so I was almost done writing the previous post and then I found the issue. I decided to post it still in hopes that someone may find it helpful because it was sending my for a loop and I have been doing this for some time.

    First off the way I was pulling information into my custom themes by using the following code.

    global $post
    $post->post_content;

    This works but it does not allow WordPress to phrase the content before output.

    You have to use

    if (have_posts()) :
       while (have_posts()) :
          the_post();
          the_content();
       endwhile;
    endif;

    To get WordPress to phrase the content. This was a issue I was having on 3 separate projects and just though I would post the solution to the issue. I see it very where but with little solutions

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode Support for a custom theme’ is closed to new replies.