Disable title block on edit screen for a custom post type

I have a custom post type with a custom block to collect required data and store it in post meta data or standard fields like title or slug, so I don’t want to display the Title block. I can’t disable title support in the CPT, because too much else depends on it.

The only successful attempt so far has been using CSS to target the id "post-title-0" of the for the title and can clearly enqueue a small CSS file depending on the post type, but I don’t want to depend on something set by WordPress that I can’t control; it feels that something in Javascript would be a better way to go if possible. I was wondering if WP provde any hooks for this but haven’t found any.

I’m a javascript novice, having started learning it in the last few weeks in order to write some custom blocks, so am not clear on the extent of what can be acheived with it. (I have 50 years experience of programming, just not in JS).

It would be OK to only hide the title until the post has been saved.

Has anyone any ideas?

Where to find information about the official DnD5e books title creatures?

I’m wondering where did the title characters from the official DnD5e books come from. What are their lores in the world of DnD 5e. I want to know more about: Tasha, Xanathar, Mordenkainen and Volo.

Where can I learn more about their stories? Is there any official information? Or are they only some cool naming for the books?

Is there any information about them in their books?

Adding an optional page title with background image to custom page templates (or all pages for that matter)?

I will explain what I’m trying to accomplish as I am having a difficult time figuring out the best way to ask this question. I have a custom theme that I am working on. I have several custom page templates for different page layouts etc.

I have one page template that places the page title centered below the header on top of a full width background image (featured image)…..a common template the user could use for interior pages if they want.

I realized that maybe they would want this feature at the top of some of the other layout templates. How can I add this to the top of every page template, but allow the feature to be checked on or off in the page editor? I feel like this should be somewhat standard, but I’m stuck.

Any help greatly appreciated!

Display page and custom post title inside shortcode

I trying to write shortcode to display page title but only got the archive title to work but not custom post type category and single post. Can anyone shed light how to do this? Reason for going this path is Elemenentor theme builder generate too much code for simple page title and subheading inside secondary header that is masked wrap around image. I use the shortcode widget to insert the code and style it.

So far this is what I have written:

// Page Title inside shortcode function page_title_sc( ) {     $  title = ('Page Title');     if ( is_post_type_archive() ) {     $  title = post_type_archive_title( '', false );   }   elseif ( is_page() ) {     $  title = single_post_title();    }     return apply_filters( 'page_title_sc', $  title ); }   add_shortcode( 'page_title', 'page_title_sc' ); 

Why on page WordPress site SEO title and page title is different using yoast?

I am using yoast SEO plugin for my WordPress site. Configuring when I change my webpage seo title it automatically change my page title I don’t want to show that.


Page title. About us

SEO title. About us – Mukta Art

I need to show on my page only "About us" title instead of SEO title. When I edit page title not change update and when ch

Getting catagory title total number of questions and answers order by number of questions

I have three tables. Which is in at this fiddle, http://sqlfiddle.com/#!9/46dfd6

Which is like this?.

CREATE TABLE `user_answers` (   `id` int(250) NOT NULL,   `question_id` varchar(250) NOT NULL,   `user_id` int(250) NOT NULL,   `answer` text NOT NULL,   `date` date NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;  CREATE TABLE `user_questions` (   `id` varchar(250) NOT NULL,   `user_id` int(250) NOT NULL,   `note_id` int(250) NOT NULL,   `title` text NOT NULL,   `question` text NOT NULL,   `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=MyISAM DEFAULT CHARSET=latin1;  CREATE TABLE `material_univarcity_list` (   `id` int(100) NOT NULL,   `name` varchar(50) NOT NULL,   `about` mediumtext NOT NULL,   `date` date NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; 

I want to get a resultant table which has count – Name(Name is from material_univarcity_list) Total number of questions to that particular name. Here id of material_univarcity_list table is the note_id of user_questions and I want total number of answers to that particular catagory here question_id is the id of user_questions. How can I do this?

My expected result is like

no|catagory        |number_of_questions |number_of_answers  1|DBMS 5th sem ISE|            2       | 3 

How can i do this?