Black Pig
  • Home
  • Code
  • How To’s
  • Downloads
Select Page

iFrame tag for Video Embed

Sep 21, 2020 | Video

I took this iFrame from YouTube. You can find all attributes and custimizations here: https://developers.google.com/youtube/player_parameters

Simple WP_Query with the Loop

Sep 19, 2020 | WordPress

wp_query with the loop.

Order The Events Calendar Events by Start Date

Sep 17, 2020 | WordPress

If for some reason you want to order the events by the end date, use _EventEndDate.

Gravity Forms Shortcode

Sep 13, 2020 | WordPress

Gravity Forms shortcode with parameters. See https://docs.gravityforms.com/shortcodes/ for more.

WP_Query to Show Posts Equal to or After a Certain Date

Sep 10, 2020 | WordPress

Shows posts on or after a date. Will not query old posts.

WP_Query Custom Post Type Query by Category Variable

Sep 10, 2020 | WordPress

Query a custom post type by category using a variable in the shortcode.

Set up Redirect in WordPress .htaccess File

Aug 14, 2020 | WordPress

Adds a redirect in WordPress using the .htaccess file. Add this code snippet to the .htaccess file.

Define WordPress Dashboard Menu Order

Aug 12, 2020 | WordPress

Allows you to put the WordPress dashboard menu items in a specific order.

Loop Through Advanced Custom Fields Repeater

Aug 3, 2020 | Advanced Custom Fields

Shows how to loop through an ACF Repeater field and load sub field values.

« Older Entries
Next Entries »

Categories

  • Advanced Custom Fields
  • Bootstrap
  • CSS
  • Divi
  • Email
  • Flexbox
  • HTML
  • jQuery
  • PHP
  • Security
  • Video
  • WordPress
© 2020 Black Pig Snippets [year]