WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] etc. in Formatting (9 posts)

  1. orockie
    Member
    Posted 1 year ago #

    Hello all!

    I'm trying to use <!--more--> tag with the_content for my loop, but nothing is cut off, it renders the whole post.

    I've tried in different themes, without any other plugins, and using hacks like <?php global $more;$more = 0;?>.

    How can I use <!--more--> in 'Settings > Formatting > Single Event Page'?

    Best,

    Owen

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 1 year ago #

    have you tried to use placeholder #_EVENTEXCERPT and then for readmore link - <a href="#_EVENTURL">read more</a> ?

  3. orockie
    Member
    Posted 1 year ago #

    That works fine agelonwl, but I'm looking to use the_content to put images in the post. Any ideas?

  4. agelonwl
    Member
    Posted 1 year ago #

    can you give us a sample snippet of what you have at the moment? e.g. are you using wp_query?

  5. orockie
    Member
    Posted 1 year ago #

    Sure,
    I'm using the Imbalance 2 theme. Here's my loop:

    <?php while ( have_posts() ) : the_post(); ?>
    <?php if ($imbalance2_theme_options['images_only'] == 0): ?>
    <div class="categories"><?php imbalance2_posted_in(); ?></div>
    <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
    <?php the_content() ?>
    <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('homepage-thumb', array('alt' => '', 'title' => '')) ?></a>
    <?php endif ?><div class="texts">
    <?php if ($imbalance2_theme_options['images_only'] == 1): ?>

    Thanks for your involvement, hope this helps!

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    I think you need to add something to the_content, e.g. the_content('read more...')

    http://codex.wordpress.org/Function_Reference/the_content

  7. orockie
    Member
    Posted 1 year ago #

    No such luck with that one, I'm afraid.
    I've suspected it's a conflict/quirk of my theme.
    Does this normally work as intended (the <!--more--> is stored in the 'Formatting > Single Event Page' template)?
    Regards,
    O

  8. caimin_nwl
    NetWebLogic Support
    Posted 1 year ago #

    Looks to me as if the <!--more--> tag doesn't work either in the formating box or the Edit Event page. That's something we need to test and look into.

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    Whilst we look into this, one thing... #_EVENTNOTES will not cut off the more tag, but #_EVENTEXCERPT will.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic