With WordPress you can use multiple ways to get a list of posts or content items, some of them will allow you to get the default posts and pages so you can loop through them and display these in your theme. The other option is to create a custom query to get specific posts from your content. To create custom queries the best option is to use the WP_Query class.
In version 5.2 of PHP the DateTime class was introduced, in this tutorial we are going to investigate how this can be used and why it's better to use this class over the old date() and time() functions. The date() function can be used to output a string that represents the date/time provided, it takes two parameters the first parameter defines what format the string is returned, the second parameter
WordPress it's not only a CMS it can be used as an application Framework, when it's being used as a framework you will find yourself adding custom data to your database using the $wpdb object and custom tables. When you have this in place within your application you will want a nice way of displaying the data in the admin area of WordPress. This is exactly like the posts edit
All the major social networks have their own sharing buttons, these make it really easy for visitors on your website to share the page without leaving the website. These are great additions to your website and you shouldn't have a blog without the ability to share your pages on social media networks. One problem with the social network share buttons is that they make a lot of HTTP requests to
In this tutorial we are going to walk through the process of creating a ticking clock in CSS, using CSS3 features animation and transform. The animation will start when you load the page, the animation is the same for all hands we just need to change the timing used. To view what we are going to create you can see the demo of the CSS clock below. CSS Clock Demo
There can be times where you have a page in Search Engines that you don't want indexed or are creating a new page and don't want this one page to be indexed. In this tutorial we are going to look at all the different ways you can stop the search engines from indexing your page. First of all there are a few things you can do to stop search engines
Guzzle is a PHP framework to handle HTTP requests for RESTful web service clients. Using Guzzle will allow you to make CURL requests with a simple interface to communicate with the web service. All the power of cURL with a simple interface. Persistent connections and parallel requests. Streams request and response bodies Service descriptions for quickly building clients. Powered by the Symfony2 EventDispatcher. Use all of the code or only
I've recently had to migrate a website which needed to switch a URL from www.example.com/blog/ to be on a sub-domain to http://blog.example.com/. When you do a site migration like this you need to make sure that you redirect all previous URLs from the sub-folder to the sub-domain. This is so you can keep the SEO value of all these previous pages, same with all the previous links you've added in
When you add a textarea to your webpage it will allow the webpage visitor access to resize the textarea to any size they want horizontal and vertical. In chrome you are only able to resize the textarea on the vertical. There is a CSS property that allows you to control how the user can resize textareas. Resize Both Resize the textarea both horizontal and vertical
Each month the Envato marketplace brings you free premium files. Envato is a web marketplace where you can get premium files for different areas of your website. My favourite marketplaces are the script marketplace CodeCanyon and the theme marketplace ThemeForest. Here are the files which you can get for free for December 2013. jQuery responsive youtube playlist for WordPress 123 purchases at the price of $7.