How to give titles to custom post type as “unique” incremental number?

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

WP_Query by keyword OR post tag

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

Use of domain name

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

How To Keep Search Title the same on paged Results

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

Show different title on category page

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

Image behind the post’s title

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

How to search titles/artist/album within a playlist, and only lists the results that match?

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

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