Advanced Custom Fields wordpress plugin - Options Page Shortcode

I am using the Advanced Custom Fields Plugin (http://www.advancedcustomfields.com) with the options page add-on so I can use global variables throughout the theme (on multiple pages). I don't know...

Using Advanced Custom Fields and Contact Form 7 to display a form

I want my users to be able to put a Contact Form 7 shortcode into a custom field in the Wordpress editor. I've created the custom field using ACF and I can pull the value onto the page, but when I...

WordPress Orderby Last Word In Title

I have a custom post type of "staff". I need to get this to display the staff alphabetically by last name on the page. I know a work around would be to use custom meta boxes and break up first and...

WP Custom Fields, hide code if field is empty?

I'm using a custom field template plugin for WP. I want to hide <li>Sqft: [squareft]</li> if the field is empty. I've tried different codes, these are two I've tried based on suggestions: <?php...

Contact Form 7 - Custom Validation

I need to validate just one field (called 'Instance') to accept lowercase ASCII letters and numbers only, the first character also has to be a letter not a number. It will accept uppercase...

Return ACF field as a Shortcode using Wordpress Functions.php file

How do I use an Advanced Custom Field as a Shortcode. Ive used the following code in the Wordpress functions.php file but no luck. Here is my Code: function location_date_func( $atts ){ return...

Fetching revolution slider shortcodes

I'm trying something new here. I have a Wordpress custom theme. I have Advanced custom fields all setup. I'm using the advanced custom field's load_field function on a "select" field with...

Shortcode with value from ACF

I've a Advanced Custom Field for my campaig : my_advanced_custom_field = 12223 and I've a shortcode in my page that call my campaign [campaigns id=my_advanced_custom_field] Is it possible...

advanced custom field (ACF) + Contact Form 7

i use ACF (Advanced Custom Fields plugin) for Categories, Contact Form 7 and/or Contact Form 7 - Dynamic Text Extension / Contact Form 7 Modules: Hidden Fields. I will try to explain with example...

How to override WooCommerce shortcode's output?

I'm working on a Wordpress theme, where I want to change the generated markup of the [product_category] WooCommerce shortcode. I browsed through the templates directory in the plugin, but can't...

WooCommerce: Duplicate shop page to show custom taxonomy instead of categories

In WooCommerce I've used the following code to create a custom taxonomy for my products which works perfectly: // Register Custom Taxonomy function ess_custom_taxonomy_Item() { $labels =...

Embed shortcodes and oEmbed not working on Wordpress

I am having a weird issue. Normally when you paste a youtube video the video will embed properly automatically. However when I paste a link into the visual view I can play and see the embedded...

Using WPBakery ( Visual Composer) and Advanced Custom fields, I want to create or use an object that displays custom images

I'm currently working on a Wordpress website using the Advanced custom fields and WPBakery aka visual composer plugins. While I manage to use these two plugins to post custom text, I have problems...

WP - shortcode including a mixture of html and php (ACF variables)

I'm trying to create a WP shortcode that would include both html and php. For example, something like that (that does not work): function my_first_shortcode() { $content = <<<EOT <h1>Some...

Is there a shortcode for product description in WooCommerce

Is there any shortcode to call the product description(text field under the title)? For now, I'm using another custom field to do this job but it will be better if I use the WooCommerce field.

ACF options add submenu with a callback function

i want to add a custom submenu to option page so that i can render page with callback function i add. if i create acf_add_options_sub_page i must use the acf field to generate the options...

How to use variation and add-to-cart button outside woocommerce loop

I'm using woocommerce for my website, but as I only have one main product and two accessories (related products), I don't need a classic shop page, neither single-product pages for each of my...

Create WordPress gallery shortcode from Advanced Custom Fields

I am following the instructions set out in the ACF Gallery page at https://www.advancedcustomfields.com/resources/gallery/ in how to create a native Wordpress gallery using the shortcode and...

How do I access vc_map() internal values to create custom markup for WPBakery interface?

A similar question has been asked here, without any viable responses: https://stackoverflow.com/questions/36980890/visual-composer-custom-markup-for-custom-shortcode-vc-map and here:...

Wordpress Shortcode for keywords?

So, I know you can put: function page_title_sc( ){ return get_the_title(); } add_shortcode( 'page_title', 'page_title_sc' ); Into function.php to fetch the page title and get a [page_title]...

Get post tags in Grid Builder Visual Composer

I'm trying to output post tags in custom grid builder, it allows to output custom meta fields value by key, but doesn't allow to use simple wp tags. I tried to follow instructions and here is my...

Using PHP variable inside do_shortcode() for WordPress

first - sorry about the title, not sure exactly how to name what I need. Here's what I'd like to do: Get the post ID Get the Custom Field from said post id Display shortcode with the custom...

Insert ACF custom field into comments WordPress

I created a shortcode like this: function lijst_reacties(){ comments_template(); } add_shortcode('reacties','lijst_reacties'); But it shows everything I need except that I need to add a custom...

How to add a shortcode below add to cart in Woocommerce

I need to add a shortcode under "Add to cart" button in Woocommerce product pages. This shortcode is displaying a custom field from a plugin. I've tried the code below to output in a product page...

Whatsapp link by using a shortcode

I made a custom field "Mobile Number" and I need when a visitor clicks on that phone number, it opens a Whatsapp chat. How I can do it? I tried many methods...

How to dynamically pass an array of values to a <select> field in Contact Form 7?

According to the official Contact Form 7 docs, it is possible to pass a a default value to CF7 from the shortcode, in this way: // field in CF7 in Wordpress admin area [email* destination-email...

Add custom "Add to cart" button based on ACF field to WooCommerce single product page

I want to add an additionall custom "Add to cart button" on the single product page conditionally using this code: add_action( 'woocommerce_product_meta_end' , 'add_to_cart_custom', 10 );...

Wordpress - CRUD operation from the front end

I'm in a bit of crux here. I have this application designed that basically allows users to enter info, create an entry, etc. etc. all the usual CRUD operations from the front end only. No user...

Get value from consent input on Gravity Forms

I’m working with this customized form that has text, e-mail, checkbox and the consent fields. But I’m having some trouble on getting the right values from the consent field to send it to the...

WooCommerce: "This key is invalid ..." error

I've created a custom reset password page on my WooCommerce site. The reset page was previously /my-account/lost-password/, but my custom page is /reset-password/. In my theme, I've copied over...