173 reputation
14
bio website evowebdev.com
location Santa Fe, NM
age 61
visits member for 3 years, 11 months
seen Jul 24 at 14:35

Front-end developer, designer, specializing in WordPress CMS business site development.


Jun
26
comment Trying to exclude custom posts based on date, while sorting by custom field
Thanks, Brady. The code above does not break anything, and it doesn't disturb my sort, and it displays the custom posts. But it does not filter out past events: still lists all performance custom posts.
Jun
25
comment Trying to exclude custom posts based on date, while sorting by custom field
Code is above. Cannot get it to display correctly in comment box (using 4 spaces). Custom field value is in Y-m-d format. Rather than an error message, it simply displays blog posts instead of custom posts.
Jun
25
comment Trying to exclude custom posts based on date, while sorting by custom field
<?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'meta_query' => array( array( 'key' => 'order-date', 'value' => $value, 'compare' => '>=' ), array( 'post_type' => 'performance', 'posts_per_page' => 5, 'caller_get_posts' => 5, 'paged' => $paged, 'meta_key' => 'order-date', 'orderby' => 'meta_value', 'order' => 'ASC' ) ) ); $query = new WP_Query( $args ); if (have_posts()) : while (have_posts()) : the_post(); ?>
Jun
24
comment Trying to exclude custom posts based on date, while sorting by custom field
Can't get the code to display correctly; sorry.
Jun
23
awarded  Commentator
Jun
23
comment Trying to exclude custom posts based on date, while sorting by custom field
Here is the code I implemented: <?php $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'performance', 'meta_query' => array( array( 'key' => 'order-date', 'value' => $value, 'compare' => '>=' ), array( 'posts_per_page' => 5, 'caller_get_posts' => 5, 'paged' => $paged, 'meta_key' => 'order-date', 'orderby' => 'meta_value', 'order' => 'ASC' ), ) ); $query = new WP_Query( $args ); if (have_posts()) : while (have_posts()) : the_post(); ?>
Jun
23
comment Trying to exclude custom posts based on date, while sorting by custom field
Brady - Thanks, but I'm not sure how to implement this. I'm getting an error.
Jun
23
asked Trying to exclude custom posts based on date, while sorting by custom field
Apr
26
awarded  Teacher
Mar
18
answered How to add a “custom” date field to a custom post type?
Mar
18
awarded  Editor
Mar
18
revised Is there a limit to number of pages displayed for selection in custom menu?
fixed grammar
Mar
18
asked Is there a limit to number of pages displayed for selection in custom menu?
Dec
9
awarded  Precognitive
Sep
7
accepted How to edit theme functions file to modify pagination?
Sep
4
answered Changing the Order of Admin Menu Sections?
Sep
3
awarded  Scholar
Sep
3
comment How to edit theme functions file to modify pagination?
So a little research tells me it's repeatable (essentially, that's the difference between <!--more--> and <!--nextpage-->). Still wondering if I can display page numbers AND prev/next links.
Sep
3
comment How to edit theme functions file to modify pagination?
Also, is it "either" numbers or previous/next links? Can't have both?
Sep
3
comment How to edit theme functions file to modify pagination?
Thanks, @EAMann. Just need a bit of clarification. I want this to appear on a "page", rather than on posts, and I need it to be repeatable several times on a particular page (the client wants up to 8-10 page splits per page). Will this code you've given me for the bottom of the page template apply to each instance of a page split on a given page?