Joshua David Nelson

Bullshit Free WordPress Development

  • Services
  • Code
  • About
  • Contact

Code Snippets

Saving useful code as I find it, build it, or stumble into it.

Fork Me on GitHub

Allow shortcodes in Genesis Archive Intro Text

Allows the use of shortcodes in Genesis Archive Intro Texts/description. These settings are available for term archives, author archives, and custom post type archives.

Exclude Post Types From Search

This snippet allows you to remove a post type, like pages, for instance, from the search results without removing any others (by default WordPress searches posts, pages, and attachments). This will also preserve any custom post types you might have that are searchable (like those from other plugins).

Get Post Types By Taxonomy

Get post types that have a specific taxonomy, returns an array of objects or names, or false if nothing found.

Remove Genesis Custom Post Type Archive Metaboxes

Remove metaboxes from the genesis custom post type archive settings page.

Check If Post Type Supports Archives

Checks if a post type supports archives and returns boolean. Handy if you are playing with custom post types and page templates.

Is_Custom_Post_Type()

Checks if the current post is a custom post type, returns boolean. Very handy when working with custom post types, layouts and the like.

Snippets by Tag:

archive author avatar Categories co-author plus conditional css custom field custom post type debug filter Genesis grid loop layout metadata Page Template page type plugin post meta post save post status Post Title RSS scripts scripts-to-footer search SEO settings shortcode Sidebar sql Tags Taxonomy term meta woocommerce wp_head

  • Twitter
  • RSS Feed URL
  • Code Snippets
  • My Plugins
  • Make a Payment

© Joshua David Nelson | Hand-Forged | WordPress + Genesis | Terms of Service | Legal | Contact