Tag Info

New answers tagged

0

This is about a year over due. I have had a similar thing happen on my new word press install. Creating pages dynamically and getting incremental numbers on the slug names. During this process I realised that the original slug would access the last one. ie. ../../dynammic-page would access ../../dynamic-page-4 The solution was in the trash folder! ...


0

I resolved my similar issue (see below code block) by modifying the path to wp-load.php. Actually I used Frankie Jaret's uri parse script which really only works on the default install but, meh, that's what I use. I'm sure you can find a function that will parse it out where ever it may reside. Code below $parse_uri = explode( 'wp-content', ...


1

Your code is correct. I have tested it and it works. I think what you are missing, and what I have missed while testing (banged my head against the wall for this mistake) is the fact that these posts do not show up at the top of your post list. Remember, by default, that posts are sorted and ordered according to post date, the newest posts showing up ...


0

Just add custom-field support to your custom post; register_post_type( 'YourPosts', array( 'labels' => array( 'name' => __( 'YourPosts' ), 'singular_name' => __( 'YourPost' ) ), 'public' => true, 'has_archive' => true, 'supports' => array( ...


1

The post_category you are using is for core categories taxonomy. For custom taxonomies you have to use tax_input. For example, the next code set terms for custom_tax_category and custom_ta_tag taxonomies. $args = array( 'post_type' => 'custom_post_type', 'post_title' => wp_strip_all_tags( $title ), 'post_content' => 'some ...



Top 50 recent answers are included