Gutenberg – Title field required

Question
I'm trying to make the title field required in Gutenberg editor interface. The PHP functions I found work with Classic editor interface but not with Gutenberg. I tried to add required attribute on the textarea field (title) with jQuery but I can ...
0
1 week 0 Answers 24 views

Set page title based on slug and not page ID in WordPress and RankMath

Question
I have a custom theme. There is a template for all products (and main product page uses same template). So: mysite.com/products = post id = 12 mysite.com/products/product1 = post id = 12 Current page title for -> mysite.com/products = "Product Page" (but I ...
0
2 weeks 0 Answers 19 views

Question
I want to ask a question: I have a source code, it only works for the post-new, but not edit post. So how to disable Publish button on Edit post if post title exists? add_action('wp_ajax_check-posts-by-title', function(){ $title = ... 0 2 weeks 0 Answers 29 views Get rid of title from static front page Question I don't have an image logo header yet, rather, I'm just using one of my 'Pages' as my static front page. It's title is "Welcome" So now, 'Welcome" and links to it are appearing in three places: at ... 0 3 weeks 0 Answers 28 views the_title() shows title of the first post instead of the page title? Question I'm occasionally facing this problem and not sure what causes it, any ideas? <?php get_header(); ?> <div class="content" role="main"> <h1><?php the_title(); ?></h1> ... 0 3 weeks 0 Answers 32 views Wp query orderby ‘title’ doesn’t work Question I would like to order a list of post title alphabetically. I am using this specific query // WP_Query arguments$args = array( 'category_name' => 'reportage', 'order' ...
0
3 weeks 0 Answers 36 views

query_posts doesn’t order by title

Question
It seems like stupid bug, but how can i order by title? It anyways orders by date! I'm using: query_posts( array( 'post_type' => 'page', 'posts_per_page' => -1, ...
0
3 weeks 0 Answers 33 views

How to remove category titles?

Question
When I go into certain categories, there is a page title that says "Category: category_name", like this: I would like to remove the "Category" from that title. I've already looked around quite ...
0
4 weeks 0 Answers 38 views

I need to make the title of the page dynamic in my custom plugin

Question
// Our callback to create the contact form page. function gym_contact_create_form() { \$form = array( 'post_title' => wp_strip_all_tags( 'Gym Contact Page' ), 'post_name' => 'gym-contact-form', ...
0
4 weeks 0 Answers 38 views

change title separator

Question
tell me how permanent the links to change the splitter from vertical to horizontal of the main page write website. | — http://joxi.ru/a2XlxQXcyeKPj2 The name of the site | short name The name of the site — short ...
0
4 weeks 0 Answers 38 views