Support

Home Forums Event Espresso Premium Cannot get Event Espresso shortcodes to work in theme

Cannot get Event Espresso shortcodes to work in theme

Posted: July 11, 2013 at 8:56 pm


Winston Douglas

July 11, 2013 at 8:56 pm

Hi, i’m using the latest version of EE and wordpress. I have downloaded a theme and I can’t get the shortcodes to appear within the theme pages.

I have created all new pages using the theme templates that include the 4 main shortcodes. I have updated event espresso ‘General Settings’ with the new page names from the drop down list.

I have deleted all other draft or publish pages that had the [EVENT_ESPRESSO] Shortcode on them.

When i preview my pages, all i can see is the shortcodes in text format.

Example here: http://valoros.com/?page_id=282&preview=true&preview_id=282&preview_nonce=8c3f5f00e0

Any idea’s what could be causing this?


Dean

July 12, 2013 at 4:38 am

Hello Winston,

I cannot see preview pages, as I do not have admin access to your site.

Are the 4 Event Espresso pages published and public (not password protected or private)?

Have you checked the General Settings to make sure that the correct pages (with the shortcodes) are added to the Main Pages section?

Do you have a direct link to the page containing the ESPRESSO_EVENTS shortcode?

Though I doubt this is related to your question, you will probably need to review your theme, it is loading jQuery 1.6.2 which is old, WordPress by default loads 1.8.3 currently and Event Espresso prefers the latest version (1.8.3).


Winston Douglas

July 12, 2013 at 4:46 am

Hi Dean,

Direct link is: http://valoros.com/?page_id=282

I will try update JQuery now.

All shortcodes are present in main pages settings.


Dean

July 12, 2013 at 6:30 am

Hi,

Whats happening is that the theme has changed the way WordPress formats post content. As such it is wrapping the shortcode in paragraph tags stopping it from working.

If you temporarily swap to a default theme such as TwentyTwelve, you should see the shortcodes work.

You can you try wrapping the shortcode in [raw] tags, e.g.

[raw][EVENT_ESPRESSO][/raw]

If that doesnt work then its a case of modifying the theme to remove or disable the offending code or to swap themes.

The theme is likely to contain code that is similar (not always identical) to this – http://www.wprecipes.com/disable-wordpress-automatic-formatting-on-posts-using-a-shortcode


Winston Douglas

July 12, 2013 at 7:04 am

I installed the RAW Plugin and enclosed in the tags and that didn’t work..

I found this code in the some of the page templates –

?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?>>

<div class=”entry”>
<h2 id=”postTitle”><?php the_title(); ?><?php edit_post_link(‘ <small>✍</small>’,”,’ ‘); ?></h2>
<?php if (function_exists(‘dimox_breadcrumbs’)) dimox_breadcrumbs();?>
<div id=”twoColumns”>
<?php the_content(‘<p class=”serif”>Read the rest of this entry »</p>’); ?>
</div>
<div class=”clear”></div>
</div><!–end entry–>

Could this be thge culprit? How would I edit that to stop it using quotes?


Dean

July 12, 2013 at 7:06 am

No that isn’t the culprit.

Is it possible to get your login details in order to look into this?

If so, please send them via http://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level.


Winston Douglas

July 12, 2013 at 7:18 am

OK, I sent you the details.


Dean

July 12, 2013 at 7:44 am

Ok, so it was not the theme.

Not sure what had happened but it wasnt recognising the shortcodes. I created 4 new pages

Events
Thank You
Event Cancelled
Transactions

and added the correct shortcodes. The plugin is now functioning.

I removed the shortcodes from your 002 pages, but did not delete the pages, you may wish to do that.

The jQuery plugin hasnt updated your jQuery, I updated the theme code to load the latest version so it will work for now, but I would refer back to the theme develoepr for a permanent fix as updates will remove my change and it still isnt coded correctly (what I did was a plaster/bandaid for the problem).

The support post ‘Cannot get Event Espresso shortcodes to work in theme’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Dean 6 years, 9 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!