Set subscriber as author of Blog post in Post Edit mode

Are you looking to select User as a Author of Blog post whose role subscriber or other instead of Admin and without giving any more access of wordpress backend? wp_dropdown_users_args filter help you to set other role (Subscriber, Contributor etc) users as author of blog post without giving them additional backend privileges. add_filter( ‘wp_dropdown_users_args’, ‘bind_subscribers_to_dropdown’,… Continue reading Set subscriber as author of Blog post in Post Edit mode

Published
Categorized as Wordpress

change Placeholder text color by CSS class

Going to use Inquiry Form with background color match to Inout field placeholder text and Placeholder text not visible to your visitor when they visit site and fill up form. using below css class attribute you can change input field placeholder text color according your need. .ptcgreen::-webkit-input-placeholder { color: green; } .ptcgreen:-moz-placeholder { color: green;… Continue reading change Placeholder text color by CSS class

Published
Categorized as CSS, CSS3, HTML

How to display logged in user name with avtar in Menu

Hide login register etc menu item while user already logged in your website and display dynamically logged user avtar profiel picture with display name by dynamically add it in wordpress specific menu using wp menu filter action

Published
Categorized as Wordpress

Modify Post archive Category archive page query by pre_get_posts action

Base on some specific requirement you want to do like display only specific Posts in archive page instead of all with specific ascending or Descending order and for that you need to modify Category archive page or Post archive page query Right. In wordpress with help of pre_get_posts wordpress action hook you can do without… Continue reading Modify Post archive Category archive page query by pre_get_posts action

Published
Categorized as Wordpress

Add additional custom field to WooCommerce checkout in wordpress

In our today Woocommerce related post you will get one of the most useful ready made script which you should directly used in your website if you want to implement functionality like track Woocommerce Order as Buyer customer from where hear about you and become your customer. Look at below screenshot and you get clear… Continue reading Add additional custom field to WooCommerce checkout in wordpress

Custom language switcher flag in WPML WordPress

Working with WPML multilingual plugin to setup multi language site in wordpress and looking for setup custom language switcher at specific location in your page than following code become helpful for you.

Published
Categorized as WPML