Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Kate,

    I did something very similar and I had the same problem…it was showing all the dates and not making the comparison. The problem turned out to be the way the date is formatted. Make sure the value in your meta-key, ‘event’ is in the same format as $today. This is where your problem is in this example. You need to use “Y-m-d”. Also it is recommended to use new WP_Query instead of query_posts.

    <?php $today = date('Y-m-d');
    $args=array(
    	'post_type' => 'event',
    	'meta_key' => 'event-date',
    	'meta-compare' => '>=',
    	'meta-value' => $today,
    	'orderby' => 'meta_value',
    	'order' => 'ASC',
    	'paged' => $paged
    );
    $event_loop = new WP_Query($args)
    
    ?>

    thanks bcworkz…I didn’t know that (about the echo being built into the_ functions). It makes sense that is how it works …the_content() et al

    For one thing, try to echo your variables so they get written to the html like this

    <?php echo the_permalink();?>

    Thread Starter Thea G

    (@thea-g)

    Well, I’ll make a plug-in if I can figure out how to make a filter hook that puts that loop-single code into the templates. …it never ends…

    Thread Starter Thea G

    (@thea-g)

    Okay, Thanks. I rethought my strategy, anyway. I’m having a gallery page that shows the list of available movies, and when you click on one, it goes to the loop-single.php template, which does use the shortcode to embed the movie.
    Actually, the callback:

    echo jwplayer_tag_callback("[jwplayer config='libplayer' file='$movie' image='$preview']");

    Works great….now everything is standard and the custom player works. I may make a plug-in for it, since it has some utility.

    Thread Starter Thea G

    (@thea-g)

    Hi LT Video Member…I was hoping you would say that. What is and example of the shortcode to show just a link and not the movie (until it is clicked)?

    You can accomplish this by creating a custom menu with a link to the category page.

    It looks like you have this working now?

    Thread Starter Thea G

    (@thea-g)

    This is what I tried to do but it just looks plain. (although it works)

    <span id=”search”><label for=”searchbox”>Search sessions by Presenter or Title… </label><input type=”text” placeholder=”Filter items…” size=”50″ onkeyup=”javascript:filterlist(this)”> </span>

    Hi Roland,

    I think this problem is because you use html tables in your Particpants Database sign-up form where Contact Forms 7 uses div tags, so there is a different look.

    Here is a little hack to the code.

    open wordpress/wp-content/plugins/particpants-database/classes file name

    Signup.class.php

    you will find the table output starting on line 238.

    And the line to edit is line 263 which is default:

    <th><?php echo $column_title?></th>
    <td>

    change this line to:

    <td><?php echo $column_title?>

    This will put both the label and the input form inside the same column.

    Of course, this change is going to be overwritten the next time I update my plugin, so is there a way to make this a unique form, like prehaps create a new class file called signupform7.php

    Is that possible? Or is it bad?

Viewing 9 replies - 1 through 9 (of 9 total)