How to remove category and other tags from posts page
How to remove category and other tags from posts page
How to remove category and other tags from posts page
You can use the wp_insert_post_data filter, and check the post_category array for your category ID. (If $update is false, you’ll know it’s a new post being added, not an existing post being edited.) Something like this should work. add_filter( ‘wp_insert_post_data’, ‘wpse414180_maybe_change_slug’, 10, 4 ); /** * Changes the slug on posts in the Poetry category. … Read more
How can I customize sections of the homepage layout?
I would get the count of a variable number of repeated titles by using an indexed array. $theposts = get_posts( array( ‘post_type’ => ‘post_subscriber’, ‘post_status’ => ‘publish’, ‘numberposts’ => -1, ) ); // project titles counter, outside the loop $project_titles = array(); foreach( $theposts as $p ): $project_name = get_post_meta($p->ID, ‘project’, true); echo ‘<ol>’; echo … Read more
How to delete posts with incorrect status
Post pages are redirecting to the 404 page in wordpress
The GUID is a unique identifier. That is its only purpose. When it’s a post, I think guid is self-evident. But what is the correct formulation/destination for that URL when it is an attachment? Attachments are posts. If the GUID is being used then the attachment is being consumed from a feed as a post. … Read more
How to update a lot of posts on my WP site with additional content?
I have a blog and want to prompt the user to select a category they like and have that select a random blog post
I am using the query block and what I want and see on the editor page is not the same with the actual results