Ok! So you need to pass variables to get_template_part() in WordPress. Sorry because get_template_part() is not made to accept variables or arguments. But here is a better way to achieve the same using WordPress’s locate_template() function within PHP’s include().
Category » WordPress
Use functions.php to create child theme in WordPress
The old way to create child theme in WordPress is to place a style.css file in your child theme folder and import the parent stylesheet into the child theme. But WordPress documentation stated the use functions.php to create child theme in WordPress and use wp_enqueue_style() to enqueue the parent stylesheet.
Responsive Best Free WordPress Themes | Nov 2014
This article has collection of selected Responsive Best Free WordPress Themes which I already tested and used in client projects as well. These themes are not only amazing and beautiful but also are free to download and use as well as they don’t have any lite/pro version concern. Grab a coffee or tea and start bookmarking your favorites.
Contact form 7 validation error don’t disappear
Contact form 7 gives the error message on submit but when we try to correct contact form 7 validation error don’t disappear. Usually, when someone tries to click back into the form field that has an error, the validation message disappears. The validation boxes stay in place and the user can’t see the form field to fix his error. I’ve had this work automatically on most of the sites.
Styling Contact Form 7 validation with CSS and border
Contact Form 7 uses minimum CSS for styling and validation. Hence lacking of better UI designing. We can overcome this issue by styling Contact Form 7 validation with border which I’m describing here in this article. Here, we will apply some CSS rules for validation customization on Contact Form 7 forms including styling Contact Form 7 validation with border.
Set featured content to grid or slider in Twenty Fourteen theme
Twenty Fourteen is the awesome, sleek, modern, and beautifully crafted responsive design and magazine style default theme since version 3.8 to 4.0. If you like the layout of Twenty Fourteen but confused where to set featured content to grid or slider in Twenty Fourteen theme then here’s the help you need.
What are tags and tag cloud in WordPress?
Tags and tag cloud in WordPress are terms that quickly tell readers what a post is about and a useful way to group related posts together. A very few years ago I used to thought that tags are tricky things that are placed by bloggers to confuse people (:-D)! But soon I got familiarize with this one and so I thought to write a blog post to let readers and WordPress beginners to be familiar with tags and tag cloud.
Moving WordPress Site from Localhost to Live Server
It’s a good idea to develop a WordPress site locally as it can boost up the speed of development. Moving WordPress site from localhost to live server after finishing the development on localhost isn’t a hard work. This article involves steps to transfer WordPress to web server.
Restrict WordPress login access by hiding wp-login
If you access dashboard less frequent and there are only 1-2 authors then you can secure WP site through restrict WordPress login access by hiding wp-login.
WordPress websites are having more prone to suffer attacks and hacks. Because everyone knows the path of dashboard and structure of wp site.
WordPress AJAX Login and Register without a Plugin
We can implement WordPress AJAX Login and Register without a Plugin. This tutorial will assist to let you do it in right manner with some additional features too, including Best practice techniques, Both forms in popup windows, AJAX Login and Register without a Plugin, Inbuilt client side form validation with jQuery, Opening login/register form from link given in another popup.