Halloween Sale 15% off Ends in See the plans

Snippet Library

WordPress code snippets, ready to use

3,040 free snippets from the WPIDE team and the community. Copy the code, or add any snippet to your site in one click with WPIDE.

1–13 of 13 snippets “meta-box”

  • 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.

  • 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 Redirects

    Redirect Field for Posts and Pages

    Adds a "Redirect to" box to the post and page editor; when filled in, visitors who open that post are sent to the address you entered, on your site or elsewhere.

  • PHP Multilingual

    Set a Different Language for Individual Pages

    Adds a "Page language" box to the editor so a single post or page written in another language gets the correct lang attribute (and text direction) for screen readers, spell checkers and search engines.

  • PHP Developer

    Subtitle Field for Posts

    Adds a "Subtitle" box to the post editor, saves it securely and provides a [wpide_subtitle] shortcode and a helper to display it in your theme.

  • 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.