Most WordPress developers have used WP_Query, query_posts and get_posts at one point or the other. Question is – how do you know the use case for each?
In this article i will try to clarify.
First let us understand the concept of main query and secondary queries in WordPress.
Continue reading “WP_Query vs query_posts() vs get_posts()”
In part I, i covered creating a database, form and entering data with validation checks. In this part i am going to show you how to display the entered messages.
Let us get started.
Create a new file messages.php and enter the following code
Continue reading “Contact Form in PHP with Validation – Part II”
This is a basic tutorial on creating a PHP contact form with validation, in 2 parts. In part I, i will show you how to create the form and capture contact details of visitors and save in database.
Part II will deal with retrieving the contact details and displaying on a page.
Let us get started –
Get your MySql database connection details. You will need server name, database name, user name and password.
Continue reading “Create a PHP Contact Form with Validation – Part I”
Search form is often an overlooked feature when developing new themes. But for content rich wordpress sites it is a must. In this tutorial i will show you 2 easy ways to change the HTML of wordpress search form.
End result will look like this –
Continue reading “Change Search Form HTML – WordPress”
Scenario is like this – there is a div and an element inside that div, let us say a span or a link element. This element needs to be middle aligned vertically inside the div.
Apparently there are several way to do this. I am showing you the easiest method.
Continue reading “How to Vertically Center Align an Element in Bootstrap 4”
But adding the bootstrap framework just for a responsive navbar is an overkill. Bootstrap is not a small framework and it adds substantial bloat to your page and slows it down.
Continue reading “Create Responsive Navbar without Bootstrap”
I have a wordpress database. I will pull posts from this database and display with pagination. Lets get started.
Make database connection. Obviously values below are for my own database. Change them to fit yours.
Continue reading “Simple PHP Pagination With Mysql”
Continue reading “Vue Hot Reload with Laravel Mix”
All variables are objects in Python and can store data of the following types
Text, Numeric, Binary, Boolean, Sequence, Mapping and Set
Continue reading “Python Variables – Data Types”
Python is an object oriented high level programming language. It is primarily used for developing web applications and programs involving complex mathematical calculations. It is also used for systems scripting.
Python is highly portable and Python programs can be developed under any Operating System. But this series is for windows users only – Windows 7 and above.
Continue reading “Learn Python – Lesson 1”