Delete a repeated part of post title in WordPress

if you have access to your database, as every posts are registered in the (wp_/ or whatever is your prefix )posts , you can probably do it via sql something like update wp_posts SET post_title = substring(post_title,1, CHAR_LENGTH(post_title) – 10)) WHERE post_title like ‘%With Table’

Double bar “|” in title (By WP SEO Yoast?) [closed]

I use this plugin together with TwentyTen too and encountered the same problem. My solution is to leave wp_title( ‘|’, true, ‘right’ ); unchanged but only enable the call to function bloginfo() in the next line if plugin WordPress SEO is inactive. include_once( ABSPATH . ‘wp-admin/includes/plugin.php’ ); // Add the blog name. if ( is_plugin_inactive(‘wordpress-seo/wp-seo.php’) … Read more

How to remove Title and CSS styling of title from particular page

The body_class() (see Codex) is a function that displays classes depending on the query. In other words: Depending on where you are, it outputs different classes. You can as well append your own – either directly as argument or with a filter: // Directly in your template <body <?php body_class( ‘your-custom-class-name’ ); ?>> Example for … Read more

Remove tagline from the HTML on the home page without plugin?

If first check in your header.php file and check in title tag what is print. if in title tag bloginfo then it’s replace with wp_title(”) because bloginfo is not replace with code. Header.php <title><?php wp_title(”); ?></title> After function.php file put this code: function wpdocs_theme_name_wp_title( $title, $sep ) { if ( is_feed() ) { return $title; … Read more

Permalink and ACF field

You’ll need to use some different functions for obtaining the post thumbnail and title from outside of the loop: get_the_title( $post_id ) – https://developer.wordpress.org/reference/functions/get_the_title/ and get_the_post_thumbnail( $post_id, ‘post_cover’ ) – https://developer.wordpress.org/reference/functions/get_the_post_thumbnail/ Note: These functions only return the title and post thumbnail so will need to be echoed out.

Print post title with markup

Using your example, you could… <h4><?php echo get_the_title( $post_id ); ?></h4> Or $h4 = get_the_title(); echo ‘<h4>’ . $h4 . ‘</h4>’; More on get_the_title(). Or you could use the_title(). the_title( ‘<h4>’, ‘</h4>’ );

disallow publish posts with special title

The “easy” answer is: put a filter on it. add_action( ‘transition_post_status’, ‘my_function’, 10, 3 ); function my_function( $new_status, $old_status, $post ) { if ( ‘publish’ !== $new_status or ‘publish’ === $old_status ) return; if ( ‘post’ !== $post->post_type ) return; // restrict the filter to a specific post type $title = $post->post_title; $restricted_title = “title … Read more

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