In this artcle we will learn how to save and show a custom field as order item meta in woocommerce. Here I suppose to save a COLOR custom field with each of order item in woocommerce.
I have put a working code which force to add custom value for your product images. You can set ATL value as per your need. It might be like your product title or product category name + Product Title whatever combination you want.
If you are working with WordPress site then you had faced this issue many time. This is common issue of WordPress. Sometimes any piece of code takes enough time to execute and due to this WordPress requires more memory than allocated .
In this article, I elaborate how to Use Shortcodes in WordPress Sidebar Widgets. I proposed two methods to do this in simplest way. Go through the article and leave your comment.
To get posts on basis of their meta content, You can use get_posts function as given below:
A function that helps you to redirect to any custom page after posting WordPress comment. WordPress provides many filters to do this custom redirection. Few of tricks are explaining in this article .
Here In this article, You will know how to add metaboxes for Custom posts in write screen inside WordPress admin section. WordPress provides some functions to add a section where you can manage your additional content of post. In this example, I am adding a metabox as name “Images” under my custom post (lets consider post type is… Continue reading
Apply additional Style in WordPress Comment Form In this trick, You get many name of classes where you can add additional style/CSS to override default styling of Comment form. WordPress allows you to add CSS to get new look of Comment section in posts/pages. The WordPress comment form is generated using the function <?php comment_form();… Continue reading
The image that shows for the author comes from the email address set for that user which goes to a corresponding Gravatar. The display name and bio come from the User settings area in the Admin.
The body_class wordpress filter is nice for adding a lots of classes to the body tag that have information about what kind of page is currently being displayed. Probably for styling purposes. But for whatever reason, it doesn’t include a class for the current category (or categories) for a single post. This following code adds all… Continue reading
An article which helps you to add Template page in your WordPress website.We can start with a sample file and copy page.php, rename it on your choice and put it inside the theme folder ../wp-content/themes/mytheme/ .
This article helps you to install WordPress in your computer/server in simplest way. WordPress requires PHP and MySQL. In case you would like to install WordPress in your computer then you must have to install open source cross-platform web server like XAMPP, WAMP, LAMP etc.
A SIMPLE SHORTCODE The shortcode API works very simply: first you need to create a callback function that will run anytime the shortcode is used; then you need to tie that function to a specific shortcode making it ready for use. The code is frequently placed in the functions.php file, but if you plan on… Continue reading