Forums

[resolved] Shortcodes are working on Pages, but not on index.php (8 posts)

  1. felixmitterer
    Member
    Posted 9 months ago #

    Hi,
    I have a problem, I've already googled 5 hours but have not found a working solution.. When I'm using shortcodes, they are working fine in posts, but on the home page/index where the posts are displayed they just show up as text, any ideas how I can fix this issue?
    Thanks in advance,
    Felix

  2. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

  3. felixmitterer
    Member
    Posted 9 months ago #

    thanks for the tips esmi, seems that there are/were 2 problems, I've switched to twenty eleven, but it did not work either, then I've activated one plugin after another till it worked. Well now I know, that the problem is in my theme, I've put so much work into it, I need to fix it, but there's my problem, any ideas? :/

  4. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    What does your index.php file use to display the post content?

  5. felixmitterer
    Member
    Posted 9 months ago #

    <p><?php echo str_replace(' [...]', '...', get_the_content()); ?></p>

  6. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    Replace that with <?php the_content();?>.

    [EDITED]

  7. felixmitterer
    Member
    Posted 9 months ago #

    well, I love you ;) you saved my day (and probably my night), problem solved, thaaaaaaank you sooo much!

  8. esmi
    Theme Diva & Forum Moderator
    Posted 9 months ago #

    No problem :-)

Reply

You must log in to post.

About this Topic