Halloween Sale 15% off Ends in See the plans

Snippet Library

Custom Post Types & Fields snippets for WordPress

Snippets for custom post types, taxonomies and custom fields: register a post type, add meta boxes, show fields in lists and archives. For developers modeling content beyond posts and pages.

1–10 of 10 snippets “details”

  • PHP Custom Post Types & Fields

    Book Details Meta Box

    Adds author, ISBN, publisher, publication date, page count and a buy link to books, plus a [book_details] shortcode.

  • PHP Custom Post Types & Fields

    Event Details Meta Box

    Adds an "Event details" box (start, end, venue, address, price, attendance mode and ticket link) to events, saved securely, plus an [event_details] shortcode to display them.

  • SCSS Custom Post Types & Fields

    FAQ Accordion Styles (SCSS)

    Styles collapsible FAQ items (from the FAQ list and ACF FAQ shortcodes, or any Details block) with dividers, a plus/minus marker and a visible keyboard focus ring.

  • PHP Custom Post Types & Fields

    Job Details Meta Box

    Adds employment type, salary range, location, remote option, closing date and apply link to job listings, plus a [job_details] shortcode.

  • PHP Custom Post Types & Fields

    Location Details Meta Box

    Adds address, phone, opening hours and map coordinates to locations and a [location_details] shortcode with a click-to-call link and directions.

  • PHP Custom Post Types & Fields

    Property Details Meta Box

    Adds price, bedrooms, bathrooms, floor area and address fields to property listings and a [property_details] shortcode that shows them as a fact list.

  • PHP Custom Post Types & Fields

    Recipe Details Meta Box

    Adds prep and cook times, servings, calories, ingredients and steps to recipes, plus a [recipe_card] shortcode that prints a tidy recipe card.

  • PHP Custom Post Types & Fields

    Team Member Details Meta Box

    Adds job title, email, phone and LinkedIn fields to team member profiles and a [team_details] shortcode that shows them with clickable links.

  • PHP Custom Post Types & Fields

    Testimonial Details Meta Box

    Adds fields for the customer name, role, company, website and a 1–5 star rating to testimonials, plus a [testimonial_details] shortcode for the attribution line.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.