Trying to exclude custom posts based on date, while sorting by custom field

You need to make use of meta_query http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters <?php $paged = ( get_query_var(‘paged’) ) ? get_query_var(‘paged’) : 1; query_posts(array( ‘post_type’ => ‘performance’, ‘posts_per_page’ => 5, ‘caller_get_posts’ => 5, ‘paged’ => $paged, ‘meta_key’ => ‘order-date’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘ASC’, ‘meta_query’ => array( array( ‘key’ => ‘order-date’, ‘value’ => $value, ‘compare’ => ‘>=’, ‘type’ => … Read more

Calling Permalinks With PHP

I don’t know what you mean by “call images”, but this will display the title as a link. if ( has_post_format( ‘video’ )) { ?><a href=”https://wordpress.stackexchange.com/questions/21333/<?php the_permalink(); ?>”><?php the_title(); ?></a><?php the_excerpt(); }

Help Combine These Two PHP Codes

here: <?php if ( has_post_format( ‘image’ )) { ?> <a href=”https://wordpress.stackexchange.com/questions/21659/<?php the_permalink() ?>”> <?php $image = catch_that_image(); if( $image ) { ?> <img src=”<?php echo get_template_directory_uri(); ?>/scripts/timthumb.php?src=<?php echo $image; ?>&amp;h=240&amp;w=280″ class=”index” alt=”<?php the_title(); ?>” title=”<?php the_title(); ?>” /> <?php } ?> </a> <?php } ?>

How to show full post on home page

You can alter query_posts – see http://codex.wordpress.org/The_Loop – but maybe the best thing to do is use a page template with a new query. WP will default to home.php instead of index.php if one exists, so you can leave index.php alone for other page to use. See http://codex.wordpress.org/Class_Reference/WP_Query Sample query; remove the permalink and/or title, … Read more

A better code for no post format?

I’m not sure I understand. Do you just want to join all the if-statements together? If that’s the case you could use elseif, like so: <?php $format = get_post_format(); if ( false === $format ) { echo ‘This is a default post’; the_excerpt(); } elseif ( has_post_format( ‘video’ )) { ?> A VIDEO POST <?php … Read more