Remove Post Info and Meta in Learn Dash Custom Post Types

Learn Dash for WordPRess has five custom post types; courses, lessons, quiz, topic and certificates – the custom post type registration names are sfwd-courses, sfwd-lessons, sfwd-quiz, sfwd-topic and sfwd-certificates respectively. To remove the default post info and post meta data from these custom post types in a Genesis theme use the following snippet in your functions.php file…

Read More

Add a Custom Post Type Template in WordPress 4.7

custom-post-type template

WordPress 4.7 brings a new feature in the ability to add a Custom Post Type template in a similar way a Page Template is added. A page template can be added by creating a specific file page-{id}.php or page-{slug}.php file, the problem with this approach is that it is not reusable for other pages, so a…

Read More

Set a conditional argument for multiple Custom Post Types in WordPress

cpts-conditionals

You can set a conditional argument for multiple custom post types in WordPress using in_array The format is like so… if( in_array( get_post_type(), array( ‘treatment’, ‘package’ )) ) {//add in cpts here // do stuff } else { //what all the other post types get // do other  stuff } } It searches the array of cpts…

Read More

Remove Archive Title on all the Archive Pages in Genesis

Here’s how you can remove all the archive titles that appear at the header of various archive pages in your Genesis Theme, you can either remove all of them or selectively choose which one… Add the code snippet to your functions.php file and all the archive titles will be removed – all these actions are initially…

Read More

Add Custom Post Type Navigation Links in Genesis Themes

cpt-navigation-genesis

You can add post navigation links to custom post types in Genesis WordPress themes by using an existing function and just extending it. That function is genesis_prev_next_post_nav and is found in genesis/lib/structure/post.php The function just refers to posts in the code but you can extend that by adding your own custom post types to an array which then add the navigation…

Read More