WordPress Development, WP Code Snippet
In URL extension action PHP if condition use
In this tune I am going to discuss about how to use php if condition in url extension. One of my client use “wordpress-wiki-plugin” in a website. If you are use the plugin every single post show two additional menu like tab menu name “Discussion” and “History”. Client want to remove some section when in… Read More
WordPress Development, WP Code Snippet
Create custom WordPress registration form
Registration form is very important for user registration. Though wordpress has a default registration form and url. Simple take below function in your wordpress functions.php file. class jeba_registration_form { private $username; private $email; private $password; private $website; private $first_name; private $last_name; private $nickname; private $bio; function __construct() { add_shortcode('jeba_registration_form', array($this, 'shortcode')); add_action('wp_enqueue_scripts', array($this, 'flat_ui_kit')); }… Read More
WordPress Development
Automatically Add login or logout Option Item in Menu
This important that some we need to add use login button in font-end specially in menu. In this tune going describe a easy function to add login or logout option in menu item. To add the use login and logout option just take below function in your wordpress theme functions.php file. add_filter( 'wp_nav_menu_items', 'add_logout_link', 10,… Read More
WordPress Development
Own Theme Setting Page for WP Theme
In wordpress theme development theme setting page is very important to handle a easily. Most of the premium theme have own theme setting page to handle logo, footer text, to use google analytic code. In this tune easily describe how to create and use a theme setting page. Step-1: Add below function in your theme… Read More
WordPress Development
How to get wordpress author information
To get wordpress author information in your theme need to use below function. <?php the_author(); ?> <?php echo get_avatar( get_the_author_email(), 'size here' ); ?> <?php echo the_author_link(); ?> <?php the_author_posts_link(); ?> <?php the_author_meta( $field, $userID ); ?> <?php the_author_meta('social'); ?> <?php the_author_description(); ?> <?php echo date("D M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?> Line-1: To get wordpress… Read More
WordPress Development
How to Change WordPress admin bar Greeting Howdy text
If your using wordpress CMS, you must seen a common greeting “Howdy” in wp admin bar. In this tune I am going to describe how change or remove the greeting “Howdy” text. Ok let’s start, “How to Change WordPress admin bar Greeting Howdy text”. Taking below code in your wordpress theme functions.php file. add_action( 'admin_bar_menu',… Read More
WordPress Development
How to Add Pagination on Your WordPress
Today I am going discuss about WordPress pagination. Do you may know that pagination is an important factor to show your WordPress blog post. In this article an trying to describe two type of pagination, normal pagination and numbering pagination. Normal Pagination Normal pagination show that pagination which show only “Previous post” and “Next post”.… Read More
WordPress Development
General Post Query in WordPress
Post query is a common and important part in WordPress. If you will do a post query , every post gets same style from this query. The common post query code given below: <?php if(have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> // Content goes here <?php endwhile; ?> <?php endif; ?> On the… Read More