Preset category checkbox from URL parameter when creating new post

you can do that on php side with this hook : // the 2nd “post” of the hook is the post type add_action(“save_post_post”, function ($post_id, $post, $update) { if ($update) { // a post is updated return; } if (!isset($_GET[“preset_category”])) { return; } $term = get_term($_GET[“preset_category”]); if (isset($term)) { wp_add_object_terms( $post_id , $term->term_id , $term->taxonomy … Read more

How to remove “Category:” title prefix in Twenty Sixteen theme?

That title is coming from archive.php file of TwentySixteen theme. You can find a <header> code section in that file. What you can do, simply copy the archive.php file as category.php and then remove the following code section from category.php file: <header class=”page-header”> <?php the_archive_title( ‘<h1 class=”page-title”>’, ‘</h1>’ ); the_archive_description( ‘<div class=”taxonomy-description”>’, ‘</div>’ ); ?> … Read more

Using same term for slug and category

OK, found it. it is possible to have the same slug for a page and a category name. The problem was that someone installed a “redirection” plugin that caused the problems. Lesson learned is to restrict the capabilities of people working on the website, so that they cannot install plugins..

deneme bonusu veren sitelerbahis casinomakrobetceltabetpinbahispolobetpolobet girişpinbahis girişmakrobet girişpulibet girişmobilbahis girişkolaybet giriş