pierrehooker
Forum Replies Created
-
Hi Thomas,
Thanks for the help.
I took your code example and addded my field keys, and I’m getting a 500 error. Do you see anything wrong with my syntax here:
add_filter( 'yoast-acf-analysis/headlines', function ( $headlines ) { // value from 1-6, 1=h1, 6=h6 $headlines['field_5936d9fc8952d'] = 2 $headlines['field_59283d3b20950'] = 2 $headlines['field_5935b5ae549cc'] = 2 $headlines['field_592ee7fc48f6e'] = 2 $headlines['field_59273b297895c'] = 2 $headlines['field_5936bfa78d5e5'] = 2 $headlines['field_5936c6ee90e80'] = 2 $headlines['field_5936facfa293e'] = 2 $headlines['field_592dd8c562dc8'] = 2 $headlines['field_5936da698952f'] = 4 $headlines['field_592f0023e25f2'] = 2 $headlines['field_5995bf12ea6f7'] = 3 return $headlines; });
Also, can you define multiple headings in one filter, or does each need to be its own:
Example:
add_filter( 'yoast-acf-analysis/headlines', function ( $headlines ) { // value from 1-6, 1=h1, 6=h6 headlines['field_591eb45f2be84'] = 2, headlines['field_591eb45f2be85'] = 2, headlines['field_591eb45f2be86'] = 3, headlines['field_591eb45f2be87'] = 3 });
That is great news! Thanks for the info I will be implementing this asap.
Just to wonder, do you know:
We use ACF pro and flexible content fields to essentially make a very limited “page builder”. Because these blocks are rearrangeable we sometimes give some fields the ability to output an H1 or H2 depending on a ACF radio button selection. Is there a good way to deal with this using your filter?
Thanks!
value="<?php echo esc_url($_REQUEST['page']) ?>" />
I think this is a more proper solution here?
Forum: Plugins
In reply to: [WooCommerce] ONLY show current category parent and children in cat widget?So just to clarify my example, if you are in the cymbals category the widget would display:
Drums
–Drum Heads
–Cymbals
—High Hats
—Open Hats
—Crash@brad1004 can you elaborate on how/where you use that code?
@samjco your solution seems to only block the ability to edit the content, but any display issues caused by the plugin making the content editable still remain (per my original post). Ideally there would be a way to tell the plugin to not search and wrap the text in contenteditable areas to begin with.
Also, it would be great if there was a way to exclude page titles from being editable as well.
This got me on the right track, for anybody else looking to do this, this is the code I used:
<div class="venue-additional-info"> <?php $ID = tribe_get_venue_id(); $args = array('p' => $ID, 'post_type' => 'tribe_venue'); $loop = new WP_Query($args); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php the_content () ?> <?php endwhile; ?> <?php if ( ! empty( $website ) ): ?> <?php endif ?> </div>
- This reply was modified 8 years, 1 month ago by pierrehooker.
Actually, I just thought this over, and we have multiple venues, and modules/meta/venue.php controls all of them – we need to display information unique to each venue – so I don’t quite see how this would work since you say to call the venue by post ID.
If you can recommend any way to make the query automatically aware of the venue ID for the event or any other workaround???
Hello Caroline,
This is exactly the info I am looking for. Thanks,
I just wanted to mention that when using mailchimps own form the birthday fields stay blank, so it must be something related to the plugin sending the value?
More info, it is always the same email address, and it only seems to be happening on mobile
Forum: Plugins
In reply to: [WP Store Locator] Use same image for multiple stores?Sweet! Thnk you Tijmen!
My apologies,
I did mean your plugin, I was confusing your plugin with another plugin we regularly use.
So my question still applies. Thanks!
Thanks,
This fix WORKED. Thank you so much Niels.
Hello Niels, no this is not on a mobile device, this is on a mac using the latest build of Chrome