• No matter where I put the short code on the page, it displays the form at the top of the page. I have a set of instructions that I need to appear before the form. Is there a way to fix this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Same thing happening to me. Any idea, anyone?

    The reason your content gets overwritten is because the shortcode function overrides the WordPress “the_content” function or appends itself to the front of it.

    Page example:
    If you are trying to show events in a page, you might try using the custom fields, then put the WordPress function “get_post_custom_values()” function above the “the_content” function.

    <?php $customField = get_post_custom_values(“event_text”);
    if (isset($customField[0])) {
    echo $customField[0];
    }?>

    <?php the_content(‘<p class=”serif”>Read the rest of this page »</p>’); ?>

    https://prntscr.com/64ea
    or
    https://img202.imageshack.us/img202/3610/01e30a8896f4492c8c3ab8a.png

    ——————————————————————

    Post example:
    If you are trying to show events in a post, you might try using the excerpt field, then put the excerpt above the the_content function.

    <?php the_title(); ?> <– Displays the title of the page
    <?php the_excerpt(); ?> <– Displays the excerpt
    <?php the_content(); ?> <– Displays the content (or event data)

    Let me know if any of these examples work for you.

    I managed to get the page option working but for posts the events do not even display

    I am assuming the add shortcode only works for pages

    is there any way to get the add_shortcode to work for posts also as i would like to use tags and categories

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Advanced Events Registration] Problem with form placement on page’ is closed to new replies.