Ben Casey
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Supersized] [Plugin: WP Supersized] No thumbnailshmmm.
have you got the option checked correctly in the WP supersized options?
Forum: Plugins
In reply to: [WP Supersized] [Plugin: WP Supersized] No thumbnailsthere is just nothing loading into the tray,
can you activate debug mode ( http://codex.wordpress.org/WP_DEBUG ) and see if that sheds any light?
Cheers
BenForum: Plugins
In reply to: [WP Supersized] [Plugin: WP Supersized] No thumbnailscan we get a link to the site? its very hard to debug without seeing the problem.
Will do mate.
No worries mate.
Forum: Plugins
In reply to: [WP Popular Posts] [Plugin: WordPress Popular Posts] Requested UpdateAre you talking about my modifications of this plugin or this plugin in itself ?
Cheers
BenForum: Themes and Templates
In reply to: Displaying Custom Taxonomy Category DataTry this:
<?php $catId = get_term_by( 'slug', 'event-cat-slug', 'event-categories' ); $catId = $catId->term_id; print_r($catId) ?>If you need to get the posts in your post type that have a particular Event Category, something like this:
<?php $query_args = array( 'post_type' => 'event', 'tax_query' => array( array( 'taxonomy' => 'event-categories', 'field' => 'slug', 'terms' => 'event-cat-slug' ) ) ); $query = new WP_Query( $query_args ); $posts = $query->posts; ?>Forum: Themes and Templates
In reply to: (theme :ifeature) my page cannot be viewd ,replsaced by footerCan you link to your site so we can see what is happening?
Forum: Themes and Templates
In reply to: remove posts, comments and dates from static home pageIm not sure what page you are referring to, there doesn’t appear to be a link to a favourite plants page, but normally if you put in gallery using the gallery shortcode it will display horizontally across the page.
Otherwise you could align the images left and have the thumbnail be smaller than 50 % width of the column, thumbnail sizes can be edited in wp-admin at settings -> media but should be done before you upload the images, otherwise you should use the regenerate thumbnails plugin to regenerate the images to the correct size.
Cheers
BenForum: Themes and Templates
In reply to: remove posts, comments and dates from static home pageAre you referring to the home page ?
Forum: Themes and Templates
In reply to: remove posts, comments and dates from static home pageis_all_pages() is not a wordpress function, you can see a reference guide for conditional tags Here
But page.php is only used on static pages, so if you want to remove that section from static pages, just remove or comment out that section entirely from page.php.
Forum: Themes and Templates
In reply to: Simple change to date format help on custom meta fieldstrtotime is not a wordpress function, it is a PHP function. Sorry for any confusion.
Forum: Themes and Templates
In reply to: remove posts, comments and dates from static home pageLolz – Exactly as I did, beaten to the punch 🙂
Forum: Themes and Templates
In reply to: remove posts, comments and dates from static home pageTry replacing page.php with this:
http://pastebin.com/EKvDPJGnForum: Themes and Templates
In reply to: Simple change to date format help on custom meta fieldRob, What exactly does this hold:
get_post_meta($post->ID, $key, true );From there we can format it.
One “cheat” function of wordpress is strtotime.
try this:
<div class="meta"> <b>Race Date:</b> <?php $meta = get_post_meta($post->ID, 'event_date', true ); esc_html_e( date( 'l, F jS, Y' , strtotime( $meta ) ) ); ?> </div>This is collecting the post meta, escaping any nasties that could be contained in it and formatting the date correctly. Untested, but should work.