Disable title block on edit screen for a custom post type

I initially didn’t believe this is possible officially at the moment, the post title is always included: https://github.com/WordPress/gutenberg/blob/a6a0d3d47d24b83a58db7130fa82133428067326/packages/edit-post/src/components/visual-editor/index.js#L77 <div className=”edit-post-visual-editor__post-title-wrapper”> <PostTitle /> </div> The only exception at the moment is if a block template is being edited. In particular, this isn’t a block. There is a post title block but it’s only used in full … Read more

An extra ‘ is displayed in the title

Those look like smart apostrophes to me. They have a curve on theme. Try: <title><?php wp_title(‘ | ‘, ‘echo’, ‘right’); ?> – <?php bloginfo(‘name’); ?></title> Otherwise post what you have around that php section too.

Lose “Blog Archive” from page title

I just realized that you’re talking about the browser “title” at the top; that wasn’t clear from your original post Go into your header.php and at the top look for this line <title><?php bloginfo(‘name’); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?> – <?php bloginfo(‘description’); ?> … Read more

How to get “Widget Logic” plugin’s input value in a custom widget code (to display on the Widget admin page)

I’m almost sure there is no way to do that (server side) without hacking core files, bu luckly i know a little jQuery and i’ve come up with this hackish function that does the job just fine: function widget_logic_hack(){ global $pagenow; if ($pagenow == ‘widgets.php’){ ?> <script> function hack_logic(){ jQuery(‘input[id$=”widget_logic”]’).each(function() { if (jQuery(this).val().length === 0){}else{ … Read more

Short_title character problem

Use mb_strlen(), not strlen(). The same with mb_substr() and substr(): Your title contains multi-byte characters, but strlen() and substr() do not work on characters, they work on single bytes. For a improved function to shorten strings see this answer.

Remove post title

WordPress does not require entering post titles, at least not in the backend. You can leave that part of the form blank. As far as your theme is concerned, that will depend on the theme author and whether they’ve considered someone not entering a title. The default twentyeleven theme handles it fine, linking to the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)