How to Limit the Number of Revisions Kept for a Post in WordPress
WordPress keeps by default an unlimited number of revisions for each post. In most cases, this is unnecessary and it hurts performance.
WordPress keeps by default an unlimited number of revisions for each post. In most cases, this is unnecessary and it hurts performance.
Revisions are a nice feature, but if change tracking is not necessary in your scenario, my advice is to turn off revisions.
WordPress does not add custom post types to the main query automatically. Therefore entries of custom post types do not appear on the homepage, archive pages, etc.
Best practices recommend to always use the function explained in this tutorial to get the URL of a post type archive. Never use hard-coded addresses.
Sometimes we need to get specific post types according to a set of attributes. WordPress gives an easy way to achieve this purpose.