Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to get wordpress site title name from url ?

get wordpress site title name from url  <?php // Exit if accessed directlyif ( !defined( ‘ABSPATH’ ) ) exit; function oops_script(){ wp_enqueue_style(“oops-style”, plugin_dir_url(__FILE__).”style.css”); }add_action(“wp_enqueue_scripts”,”oops_script”); /*+++++++ Declaring Global Variables +++++++++*/$domain =

Read More »

How to use WP_Query with have_posts()?

How to use WP_Query with have_posts()? global $wp_query; $original_query = $wp_query; $wp_query = null; $wp_query = new WP_Query( $args ); if ( have_posts() ) : while ( have_posts() ) :

Read More »