Author name: hvlathiya

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’, …

Set subscriber as author of Blog post in Post Edit mode Read More »

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; …

change Placeholder text color by CSS class Read More »

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 …

Modify Post archive Category archive page query by pre_get_posts action Read More »

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 …

Add additional custom field to WooCommerce checkout in wordpress Read More »

Scroll to Top