Set static page/post from another blog on same network
Set static page/post from another blog on same network
Set static page/post from another blog on same network
From the “Settings” menu in the wordpress admin panel Select the “Reading” options and select your blog page for “Posts Page” from the dropdown beside it, see the screenshot here http://d.pr/i/h4nV Hope it will help
WordPress capabilities on pending post status
Simply replace wp_delete_post( get_query_var( ‘postid1’), true ); with wp_update_post( array( ‘ID’ => get_query_var( ‘postid1’ ), ‘post_status’ => ‘draft’ ) ); That is assuming that the rest of your logic does already work.
You can run a query with a tax_query parameter which excludes certain taxonomy terms. See this answer. As for where to run the query, you can either have a form that submits to the page it’s on (you’ll need to locate an appropriate template file being called for that page or create a custom one) … Read more
Restrict edit, but allow preview for custom post status
This is completely untested but I think the concept is good, and good idea too though I’d have an angry mob with pitchforks to face. Set a marker for your post when the post is previewed. You can save it in either $wpdb->options or $wpdb->postmeta. I haven’t quite decided which would be better, and it … Read more
Raw SQL is inconvenient. You can use get_posts() (or WP_Query which it wraps) with ‘fields’ => ‘ids’ (see fields parameter ) for lightweight counting, while retaining compatibility with all arguments it accepts, including category parameters
What about checking the ID value of each menu item like the following: if( $item->ID === 45): // ADD THIS MENU-ITEM ID CHECK // Query the lasts ten category posts $category_ten_last_posts = array( ‘posts_per_page’ => 11, ‘category_name’ => ‘mamba’, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’ ); $posts = get_posts( $category_ten_last_posts ); foreach ( $posts as … Read more
Now that it’s working without permalinks enabled, try resetting your permalinks back to the way you want them. That full reset should work. Edit: Are you be doing anything funky with the rewrite argument?