Sometimes after creating additional custom post types in WordPress, the option to add them to a menu in the admin menu builder will not be there. This is easily solved.
Setting a permalink base can cause issues for custom post type URLs unless a rewrite rule and with_front setting are set during the post types creation
Advanced Custom Fields (ACF) is a very powerful WordPress plugin, but after adding additional fields, making the admin UI look and feel great is important. Using grouping fields, custom styles and extension plugins gives a lot more control over what admin pages look like and stops heavy content pages looking like endless lists.
Custom post types are useful for breaking page and site content down into logical groups so that individual items can be listed together by type. However it is often necessary to apply another layer of classification. Just like the default WordPress ‘post’ post-type used for the blog has ‘Categories’, other post types often require the same categorisation. Just like the posts post-type is confusingly named ‘post’, they are grouped by ‘Categories’. This means that.. Read More
Content in WordPress is easiest to manage when divided down into separate post types. A post is a piece of content in WP, and a post type is a way of categorising the posts. The advantage of defining content in this way is that built in WordPress conventions can be taken advantage of. These include many functions that collect and iterate through posts by type, and templates that are used on the.. Read More
The WordPress function the_date() does not always behave as other similar functions do inside of the loop. Following the convention of similar WP functions, it should echo out the date that the post was created when called with a proper WP loop. Instead of displaying the date for each item inside the loop, if one date is the same as a previous, nothing will be displayed. Inside the loop, the function.. Read More
Restrict access to different WordPress administration areas and pages, based upon the assigned user level (admin, editor, user etc) or specific user details.
These functions remove WordPress menu and submenu items from appearing in the admin area by default. This can be used to restrict access to different pages, and can be combined with functions that trigger based on user level.
The Platform WordPress’ popularity and success stems from its simplicity. A simplicity that grew from the humble nature of its origin; designed originally to allow users to easily manage their own blogging websites. The WordPress site today offers both a hosted version of the WordPress open source software on their own platform, and allows anyone to download the software in a single neat zipped up package. Unpacking this bundle and setting it.. Read More
Getting a WordPress excerpt outside of the loop can be problematic as get_the_excerpt only accepts a post as an argument and not a post or post ID like most other WordPress functions. These functions get the post object and return the excerpt.