Many we want to execute some code on custom post type or some times we want to execute code on normal pages or post. So here is solution. You just…Read more →
For getting the wordpress posts we use the following methods. In every wordpress theme we always use the get_posts() vs WP_Query vs query_posts() methods for creating the wordpress theme. We should know about wordpress methods first.
We mostly use the get_permalink(), get_the_title() methods in our wordpress theme. Do not pass the post ID as parameter. if you’re doing a get_permalink or get_title() call with Post id,…Read more →
There are three ways for fetching data(posts) from wordpress. Programmers love to use query_posts more often then others. But I prefer to use WP_Query(). WP_Query is object base more secure…Read more →