By default, WordPress debugging is turned off, so to enable it, open wp-config.php (tip: take a backup copy of this file that we can revert to later if needed) in the root of our WordPress installation and look for this line: Replace that line with the following:- With those lines added to our wp-config.php file, debugging is fully enabled.
Year: 2019
To implement a selective blog feed that can be placed on a front page template or anywhere else in the design.Many CMS implementations feature some selected items from the blog feed on the home page, or even throughout the site in a sidebar or footer element 1st Step: Go to Post and Create the Categories named Featured.
A rewind_posts() function is used to reset the post query and loop counter,allowing us to do another Loop using same content as first Loop.Place this function call directly after finishing first loop. Example:- Here is an example that processes the main Loop content twice:
Nested Loop can be created inside WordPress theme templates using a combination of the main Loop and separate WP_Query instances. We can create a nested Loop to display related posts based on tags. Use the following codes:-
The query_posts function is used to easily modify the content returned for the default WordPress Loop.We can modify the content returned in $wp-query after the default database query has executed,fine-tune the query parameters,and re-execute the query using query_posts. If we want to display number of posts then thequery_posts() function should be placed directly above the start of the Loop: Example:- The following example are to display only six post in
Opener BlackFly is the future flying car it was publicly introduced on 12 July 2018 after a nine years of hardworking of engineers. It is an American electric-powered VTOL ultralight aircraft under development by Opener company,California.It was designed by Canadian Marcus Leng . BlackFly is the world’s first ultralight fixed-wing, more efficient with power usage than an electric ground-based vertical take-off and landing aircraft. Google co-founder Larry Page is the