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. query_posts() is overly simplistic and problematic way to modify main query of a page by replacing … Continue reading
Tag Archives: query
Reply
How can we save Ram usages using some wordpress theme tricks
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, 8 out of 10 times you’ll need to more of … Continue reading
WP_Query vs query_posts() vs get_posts()
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 then others. query_posts() is overly simplistic and problematic way to … Continue reading



