Skip to content
wpbeaches
  • Home
  • About
  • Services
  • Work
    • Template Library
    • Web Development
    • Portfolio
  • Contact
  • Blog
    • ACF
    • Beaver
      • Beaver Builder
      • Beaver Theme
      • Beaver Themer
    • Genesis
    • jQuery
    • macOS
    • WordPress
    • WooCommerce

Get an Array of Values from an ACF Repeater Choice SubField

September 15, 2017 - Leave A Comment
acf-array-choices-field

Get an array of values from an ACF repeater sub-field choice box to use further in your code. So in the sap_colors sub-field above I want to capture the red,blue and green values into an array and have that array reflect any further additions or deletions. You can get this via get_sub_field_object() function and you have…

Read More
Categorized WordPress Tagged ACF, array, repeater

Output a random string on each page load in PHP

June 30, 2016 - Leave A Comment

To output a random string from an array on each page load you can use the array_rand function in PHP. So in the above snippet the array is created and assigned to the $input variable, it is then output using echo and passing the $input variable initially to array_rand and the result of that being assigned…

Read More
Categorized PHP Tagged array, array_rand, random
Get Beaver Builder Now!

Tags

ACF apache archive beaver beaver builder beaver theme beaver themer bootstrap category cpt css customizer fail2ban filter flexbox footer form genesis header homebrew htaccess iconfonts image javascript jquery loop markup menu meta mysql php repeater runcloud search filter pro serverpilot shortcode slider taxonomy template ubuntu UI/UX while widget woocommerce wp-cli
PowerPack Beaver Builder Addon

Our Location

We are based in the Northern Beaches of Sydney and work with both local and overseas based clients.

Work With Us

Let us know your web requirements, see our services and use the contact form to get in touch and start the ball rolling.

Check Us Out

  • Home
  • Blog
  • About
  • Services

© 2017 · NEIL GOWRAN · POWERED BY WORDPRESS, BEAVER, OPEN LITESPEED, CLOUDFLARE AND HOSTED ON RUNCLOUD AND RACKNERD

Scroll To Top