Tim Bowen
Forum Replies Created
-
Same problem here. Looking forward to a fix shortly!
Forum: Fixing WordPress
In reply to: wp_query exclude taxonomyHere’s how to exclude a custom taxonomy but show the rest of the posts from this “news” custom post type:
$happening = new WP_Query( array( 'post_type' => 'news', // only query News post type 'order' => 'DESC', 'tax_query' => array( array( 'taxonomy' => 'news-cat', 'field' => 'slug', 'terms' => 'media', // exclude media posts in the news-cat custom taxonomy 'operator' => 'NOT IN') ), ) );
Forum: Fixing WordPress
In reply to: delete post link front endI’m having the same issue and I’m pretty sure it has to do with this URL not working for custom post types. Can anybody help?
echo "<a href='" . wp_nonce_url( get_bloginfo('url') . "/wp-admin/post.php?action=delete&post=" . $post->ID, 'delete-post_' . $post->ID) . "
Forum: Fixing WordPress
In reply to: wp insert post and custom fieldsFound the solution here: https://wordpress.stackexchange.com/questions/8569/wp-insert-post-php-function-and-custom-fields
Basically you just need to add something like this right after wp_insert_post();
add_post_meta($post_id, ‘META-KEY-1’, ‘META_VALUE-1’, true);
Forum: Fixing WordPress
In reply to: wp insert post and custom fieldsDoes anyone have an example of using wp_insert_post along with add_post_meta? The concept seems pretty clear but I haven’t been able to get it working without an example.
Thanks in advance! (and if I get it working I’ll post here)
Gravity Forms + Events Calendar Pro: How to submit events to Events Calendar Pro using Gravity Forms.
https://creativeslice.com/tutorials/gravity-forms-events-calendar-submissions/
Gravity Forms + Events Calendar Pro: How to submit events to Events Calendar Pro using Gravity Forms.
https://creativeslice.com/tutorials/gravity-forms-events-calendar-submissions/
Forum: Fixing WordPress
In reply to: 3.1.1 Network Admin redirect loopI’m having this exact same issue. Any ideas how to fix it?
Forum: Hacks
In reply to: query_posts, offset and pagination@skidevil can you post the solution you came up with?
Thanks!!!
Forum: Themes and Templates
In reply to: Theme clashing with 3.1 admin barI had this issue too on a custom template. It turned out that the wp_head function was not being called correctly in the header. Once I fixed this the menu loaded perfectly.
This bug was with the “Force rewrite titles” feature. When that box was checked AND my template title was set to
wp_title('')
this problem occurred.I simply unchecked the box and it’s fixed.
Forum: Hacks
In reply to: Exclude special "Taxonomy" from a Custom Post Type…Here’s how I got it working: ‘location’ is my custom taxonomy and $state is the slug of the location category chosen.
<?php $args=array('post_type' => 'page', 'location' => $state, 'showposts' => 99); $pages = get_posts($args); $pageids = array(); foreach ($pages as $page) { $pageids[]= $page->ID; } ?> <ul> <?php wp_list_pages('title_li=&include='. implode(',', $pageids) .''); ?> </ul> </div>
Forum: Plugins
In reply to: How to modify P2::media_buttonsI have the same issue as pswheeler. The media buttons are being called twice so they are breaking. Keeps giving me this error:
Fatal error: Cannot redeclare media_upload_tabs() (previously declared in /PATH/wp-admin/includes/media.php:18) in /PATH/wp-admin/includes/media.php on line 25
Forum: Plugins
In reply to: [Plugin: The Events Calendar] how to assign events to a custom post type?it would be especially nice to know how to include The Events Plugin options under an “events” post_type.
Forum: Plugins
In reply to: [Plugin: The Events Calendar] how to assign events to a custom post type?Any updates on this? I’ve been using WP3.0 and would love to start separating Events from Posts.