Support » Themes and Templates » Shortocodes not working on custom theme

  • Resolved isekzlysic


    Hello. First of all, sorry for my english, I am still a student. I’m currently working on website which was given to me to finish it. I didn’t do the template. Thing is, that my shortcodes are not working, for example (shortcodes are on the very bottom of the page), but when i switch to wordpress theme like twenty ten , the shortcodes are working perfectly. Does anyone have idea why or how to fix it? Please help someone, i am new to wordpress and i’m being stuck for 3 days and i need to finish it.

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


    Forum Moderator

    do the shortcodes work if you add a test page just with the shortcodes?

    what is the code of page.php of the theme?

    is there any ‘remove_filter()’ code in functions.php of the theme?

    Thank you for your help, i really appreciate that.
    – Test page with just shortcodes doesn’t work either
    – remove_filter() isnt’t in any of php codes
    – there is no page.php, there is just front-page.php and index.php

    Here is the index.php code:



    Forum Moderator

    replace line 12 of the pastebin code:

    <?php echo $wp_query->post->post_content; ?>

    with either:

    <?php echo apply_filters( 'the_content', $wp_query->post->post_content ); ?>

    or preferable:

    <?php the_content(); ?>

    Thanks a lot mate! It worked.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortocodes not working on custom theme’ is closed to new replies.