charleyramm
Forum Replies Created
-
Forum: Plugins
In reply to: Store custom field event_date as a db DATE$args = array( 'post_type' => 'gig', 'orderby' => 'meta_value', 'meta_key' => 'event_date', 'meta_value' => time(), // is event_date >= time() 'meta_compare' => '>='); $loop = new WP_Query( $args ); if ($loop->have_posts()){ while ( $loop->have_posts() ) { $loop->the_post();?>
Forum: Plugins
In reply to: Add a page programaticallyI have found an example that hides a page from the wp-admin > Pages menu, and added the page and set the template file manually.
//Exclude pages from the wp-admin > Pages menu add_filter( 'parse_query', 'exclude_pages_from_admin' ); function exclude_pages_from_admin($query) { global $pagenow,$post_type; if (is_admin() && $pagenow=='edit.php' && $post_type =='page') { $query->query_vars['post__not_in'] = array('47'); } }
https://wordpress.stackexchange.com/questions/13528/hide-a-page-in-the-admin-end-without-a-plugin
Forum: Plugins
In reply to: get_the_post_thumbnail(array(0,100)) — How do I find out the image width?$id = get_post_thumbnail_id(); $meta = wp_get_attachment_metadata($id); $width = $meta['sizes']['index-thumb']['width'];
Forum: Fixing WordPress
In reply to: Error 324 Empty response, on a previously working siteI replaced the entire wordpress folder from scratch then re-introduced my wp-config file, which broke it. I concluded that something was wrong in the database but I didn’t know what it was.
I used phpmyadmin to copy my wp_posts and wp_posts_meta tables to a new database; made a fresh install of wordpress; replaced the wp_posts and wp_posts_meta with my ones; installed my old theme, plugins, and uploaded files. And viola! It is fixed.Awesome.
Forum: Fixing WordPress
In reply to: Error 324 Empty response, on a previously working siteI have replaced ‘plugins’ with an empty folder and removed all my themes except ‘default’. But no luck. What can I look at next?
Thank you for your help.
Forum: Plugins
In reply to: Media Manager > Overwrite media without appending a “1” to itI am suffering from this issue too. It also affects whether your pictures get ‘attached’ to a new post. If there is a file of the same name, they don’t get attached, and don’t appear in the post gallery!
Forum: Developing with WordPress
In reply to: Intro Page integrationJust dump it in there and see what happens. If the server doesn’t display index.htm in preference to index.php, you could use a .htaccess file to tell it what to do.
Hi,
I seem to be having the same trouble. Any solution?Charley