Integrate Custom Post Type Events into Calendar
Integrate Custom Post Type Events into Calendar
Integrate Custom Post Type Events into Calendar
I had this exact same issue, but it’s a problem with the Jobroller theme (seeing as the custom post type is job_listing, I’m guessing you’re using Jobroller as well). The Jobroller theme adds the custom columns to the job_listing custom post type using the function jr_edit_jobs_columns in the file jobroller/includes/admin/admin-post-types.php: function jr_edit_jobs_columns( $columns ){ $columns … Read more
You need to create a hook for wpmu_new_blog action: add_action( ‘wpmu_new_blog’, ‘wpse8170_wpmu_new_blog’ ); function wpse8170_wpmu_new_blog( $blog_id ) { switch_to_blog( $blog_id ); flush_rewrite_rules(); restore_current_blog(); }
add_rewrite_rule and passing variables for custom post types
Hey @neoian – what you need is a 2 step process. Loop the categories / terms Then inside each category / term, query the posts. . $terms = get_terms(“some_taxonomy”); $count = count($terms); if ( $count > 0 ){ foreach ( $terms as $term ) { $term_link = get_term_link( $term, ‘some_taxonomy’ ); echo ‘<h4 class=”termTitle”><a href=”‘.$term_link.'”>’ … Read more
Once you are using POST method, so url is not visible (and search engines don’t take is into account), send the request using query string: add_query_var( array(‘post_type’ = ‘flyers’, ‘post_name’ = ‘flyer-01’), home_url() ); In this way the url generated is something like http://example.com?post_type=flyers&post_name=flyer-01 is ugly to see, but no one have to see it… … Read more
You don’t really need a pre-built plugin for this or you may create your own slim plugin. This is how I’d tackle the problem: You need the app to remember an already selected filter and pass all filter values every time you change your selection. Therefore your safest bet is to build a form with … Read more
Breadcrumb Not Linking to the Correct Custom Post Type Index Page(s)
When an unregistered user submits a form for a custom post type, send an email that lets them delete their post
Use get_object_taxonomies to get all of the taxonomies registered to a particular post type. Also, don’t use query_posts for secondary queries. or ever, actually. Use WP_Query. $args = array( ‘posts_per_page’ => 1, ‘post_type’ => ‘movies’, ‘orderby’ => ‘post_date’, ‘meta_key’ => ‘featured_movie’, ‘meta_compare’ => ‘=’, ‘meta_value’ => 1, ); $movie = new WP_Query( $args ); if( … Read more