add_theme_support( ‘title_tag’ ) is not showing title on index.php
I did a typo in funcions.php, typing title_tag instead of title-tag. add_theme_support( ‘title-tag’ );
I did a typo in funcions.php, typing title_tag instead of title-tag. add_theme_support( ‘title-tag’ );
The method for increment you used will not achieve what you want to if you delete the posts. Instead you can save the counter in wp_options table on front-end form submission, something like: if(get_option(‘customers_count’)){ $count = get_option(‘customers_count’, true); update_option(‘customers_count’, $count+1); } else { /** This will automatically add the option if it does not exist. … Read more
Depending what you want to achieve, the most simple way taken from WordPress documentation looks like below. Displays posts tagged with “bob”, under “people” custom taxonomy: $args = array( ‘post_type’ => ‘post’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘people’, ‘field’ => ‘slug’, ‘terms’ => ‘bob’, ), ), ); $query = new WP_Query( $args ); Check … Read more
You should use filter not action: function adddd( $title, $post_id ) { if( in_category( 30 ) ) { $title=”Prefix – ” . $title . ‘ – xxx’; } return $title; } add_filter( ‘the_title’, ‘adddd’, 10, 2 );
Yes, you can use your domain to build a website. In addition to the domain registrar, you will also need a web host. A recommendation would be far off-topic here but search for WordPress hosting, perhaps look through some reviews. I’d suggest chatting with their support team and if one stands out by answering your … Read more
I was spelling wrong statement. This worked fine for me <?php if (is_page(’80’) ) { echo get_the_title();}?> thanks
The problem is here: if( get_post_type()==’page’ || is_single() ){ echo ‘<h1 class=”h2″>’. $post->post_title .'</h1>’; } get_post_type() is using the global $post, which will contain the first post in your result set. If this is a page, then your other conditions will never be tested and you’ll never reach the is_search() test. Use is_page() instead: if( … Read more
You’ll need to change this in, most likely, your header.php file in your themes root. I would suggest that you use something like YoastSEO Plugin which will give you granular manipulation of your sites <title> and <meta> tags. If this is not an option, you would have to dive into the header.php template and update … Read more
The image you are referring to is set via your themes style.css file and not via the WordPress admin or in your theme options. You can find the file here: http://promisingcoins.com/wp-content/themes/structural/style.css Here is the CSS that is used for this section (line #1305): .breadcrumb { background: url(images/breadcrumb.png); position: relative; text-align: center; padding: 60px 0px; margin-top: … Read more
I unhook the wp_underscore_playlist_templates() function and create my own version prefix_wp_underscore_playlist_templates() You should first get back to or restore the default playlist template. (i.e. Hook back to wp_underscore_playlist_templates().) Add then add this somewhere in the theme’s main functions.php file: add_action( ‘wp_playlist_scripts’, function(){ ?> <script> jQuery( function( $ ){ // Add the search box. $( ‘.wp-playlist’ … Read more