Anybody Good With Wordpress?

10 replies
Hey guys, im making a site and ive just noticed under the pictures on my hompage ive got html code where the caption should be? When i actually click on the post its fine. Ive tried disabling the plugins but that didnt work, Any suggestions?

Matt
#good #wordpress
  • Profile picture of the author Brian Lett
    I can take a look. What is the URL?
    {{ DiscussionBoard.errors[3582552].message }}
  • Profile picture of the author SteveJohnson
    Without seeing the site, it's kind of hard to see what may be happening. If you want to PM me the URL, I can take a quick look.

    EDIT:
    Or not
    Let me know if you need a hand.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[3582557].message }}
  • Profile picture of the author social saint
    Ya, let me know the URL and I may be able to help you out.
    Signature

    Persistence, Persistence and Persistence.

    {{ DiscussionBoard.errors[3582562].message }}
    • Profile picture of the author Mrmuscle90
      Pms sent guys, let me know if you find anything, thanks
      {{ DiscussionBoard.errors[3582613].message }}
  • Profile picture of the author SteveJohnson
    What version of WordPress are you on?
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[3582646].message }}
    • Profile picture of the author Mrmuscle90
      Originally Posted by SteveJohnson View Post

      What version of WordPress are you on?
      Im using newest 3.1
      {{ DiscussionBoard.errors[3582677].message }}
  • Profile picture of the author SteveJohnson
    I can't imagine that you'd be running a version of WP that doesn't support the caption shortcode, so the next explanation is that your theme is using 'get_the_content()' or 'get_the_excerpt()' function calls instead of 'the_content()' or 'the_excerpt()'. There are a number of reasons for doing this, but the end result is what you see.

    The theme needs to be repaired in order for you to use captioned images in your front page. The content needs to be run through the WP content filters before it's echoed to the page, i.e.,
    Code:
    $ content = get_the_content();
    $ content = apply_filters( 'the_content', $ content );
    echo $ content;
    (there is a space after the $ sign in the code because this funky post editor strips them out otherwise )
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[3582685].message }}
    • Profile picture of the author Mrmuscle90
      Originally Posted by SteveJohnson View Post

      I can't imagine that you'd be running a version of WP that doesn't support the caption shortcode, so the next explanation is that your theme is using 'get_the_content()' or 'get_the_excerpt()' function calls instead of 'the_content()' or 'the_excerpt()'. There are a number of reasons for doing this, but the end result is what you see.

      The theme needs to be repaired in order for you to use captioned images in your front page. The content needs to be run through the WP content filters before it's echoed to the page, i.e.,
      Code:
      $ content = get_the_content();
      $ content = apply_filters( 'the_content', $ content );
      echo $ content;
      (there is a space after the $ sign in the code because this funky post editor strips them out otherwise )
      I had seen this on another post so your probably spot on, where do i enter this code exactly? Thanks
      {{ DiscussionBoard.errors[3582699].message }}
  • Profile picture of the author SteveJohnson
    Without seeing the theme file(s) there's no way I can tell you exactly where to put the code - or even be certain which file it's in. You'll just have to search through the theme file code until you find the correct section, or maybe hire someone to fix it for you. Have you contacted the theme author?

    This thread probably needs to get moved to the Programming forum, if any mods want to do that. Doesn't exactly belong in the main forum.
    Signature

    The 2nd Amendment, 1789 - The Original Homeland Security.

    Gun control means never having to say, "I missed you."

    {{ DiscussionBoard.errors[3582744].message }}
  • Profile picture of the author Mrmuscle90
    Ok, thanks for the help
    {{ DiscussionBoard.errors[3582772].message }}

Trending Topics