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

Read More

How to secure wordpress website from HACKERS. Use the following steps to make Your Website more secure in WordPress:- 1.Don’t Use Nulled Themes:- Few sites provide nulled or cracked themes. A nulled or cracked theme is a hacked version of a premium theme, available via illegal means. They are also very dangerous for our site. Those themes contain hidden malicious codes, which could destroy our website and database or log

Read More

How to get the content of the page according to page id in WordPress:- Get the content of the page according to page id in wordpress. Use the following code:- <?php $my_postid = 14;//This is page id or post id $content_post = get_post($my_postid); $content = $content_post->post_content; $content = apply_filters(‘the_content’, $content); $content = str_replace(‘]]>’, ‘]]&gt;’, $content); echo $content; ?>  

Read More