You can tack on the end of an existing WordPress menu the login/logout link. The WordPress menu must be registered and have a theme location, this will not work with custom menus. This needs to be added to your theme functions.php file function add_login_logout_link( $items, $args ) { if( $args->theme_location == ‘primary’ ) { $loginoutlink …
Read More
Using Slick Responsive Navigation Mobile Menus on Genesis Child Theme
Add Custom Taxonomy Terms to Custom Post Type in Genesis Theme WordPress
To add in custom taxonomy terms into custom post types in Genesis WordPress theme you need to create a function with a conditional that equals the custom post type then set the post meta using shortcode which includes the taxonomy terms, then apply a filter to the result to the genesis_post_meta function in your functions.php file. You can choose to have the custom …
Read More
Force a Custom Post Type To a Certain Layout in Genesis Theme in WordPress
You can force a certain custom post type in a Genesis WordPress theme to have a certain page layout applied to it. You can add a function and filter to your functions.php file in your WordPress theme. This will save having to manually go through and resave the layout settings in WP dashboard at the …
Read More
Remove Post Info and Post Meta from Custom Post Types in Genesis Theme in WordPress
After creating custom post types in WordPress on a Genesis theme by default the post info is displayed which contains the post author, post date and comments info and the post meta is also displayed which contains the category and tag values. You may want to have these values removed for your custom post types …
Read More
Create and Add Custom Taxonomy to WordPress Posts
Custom Taxonomies should be added to WordPress via a plugin so a theme is swapped the taxonomies are maintained. Taxonomies are either hierarchal similar to ‘Categories’ or flat, similar to ‘Tags’. You can assign custom taxonomies to regular posts as well as custom post types. Create the plugin header and file in /wp-content/plugins either as …
Read More
Find out how many database queries per pageload in WordPress
To find out how many WordPress mysql database queries a page requests and how long it takes the page to load whilst querying the database, you can add in a PHP function to a WordPress hook to find out. This can be displayed in either the source code of the html or rendered on the …
Read More
Adding a DashIcon to a Custom Post Type in WordPress
Once you have Custom Post Types set up and available via the WordPress Dashboard you can assign a DashIcon to them , these are the icons fonts already loaded and in use in the WordPress Dashboard. Selection of the icon can be done here. So in the above example I have chosen the person icon …
Read More