Chee Studio
Forum Replies Created
-
Forum: Plugins
In reply to: [Prismatic] 2.8 Breaks Front End Rendering of ACF/Gutenberg BlocksHey, thank YOU, Jeff, for maintaining such a great plugin and being so darn responsive.
Forum: Plugins
In reply to: [Prismatic] 2.8 Breaks Front End Rendering of ACF/Gutenberg Blocks@specialk Gutenberg/Block issue has been resolved, as well! THANK YOU!
Although I am very curious as to what it was… ??
Forum: Plugins
In reply to: [Prismatic] 2.8 Breaks Front End Rendering of ACF/Gutenberg BlocksOK I just did a totally vanilla install and was able to re-create the issue. It stems particuarly when using the ACF WYSIWYG (which makes sense). Other fields do not seem to be affected. I noticed this since the blocks that were galleries or a collection of other fields without WYSIWYG fields, were working fine. To recreate:
1) Follow this guide in registering a custom ACF block –
https://www.advancedcustomfields.com/resources/blocks/
(OR)
https://www.advancedcustomfields.com/resources/acf_register_block_type/
2) Create a WYSIWYG field, go add the new block to a page and populate it with some test content
3) Load the page and you’ll see the escaped content being rendered, rather than the block markup/content.
Forum: Plugins
In reply to: [Prismatic] 2.8 Breaks Front End Rendering of ACF/Gutenberg BlocksLooking at the changelog and prismatic-core.php, it seems the new decode style that is being implemented (“Improves escaping of code content”) is likely the culprit and escaping the HTML comments that initialize the ACF Blocks. Turning on wp_debug offered no assistance, since it’s not technically erroring out but rather escaping and not executing the actual block code.
As an aside, if this helps, the blocks render/preview just fine within the dashboard, it’s only when viewing it on the front end of the site.
- This reply was modified 3 years, 8 months ago by Chee Studio.
@ej that is an AWESOME idea…thank you for that! I think the catch here is that we are also using filters of region and such, so the certified members will not be the same after a filter is applied. ??
Forum: Hacks
In reply to: Call a plugin with a shortcodeTHANK YOU! Your solution was perfect. I feel silly for not thinking of it myself! Amazed that ET haven’t implemented this already.
Thanks again!
- This reply was modified 8 years, 5 months ago by Chee Studio.
Forum: Plugins
In reply to: Timber: Get data from ACF relationship field within repeater@notlaura, thank you SO much!
I was struggling trying to understand why I could derive some fields and not others from a relationship field (such as the permalink) and your code here:
{% set post = TimberPost(post) %}
Did the trick! Curious why this isn’t better documented on the TimberDocs? Or perhaps it is and I’ve overlooked it?
Forum: Plugins
In reply to: [WooCommerce] Redirect after checkout in WooCommerceHi @cindyclemens, sure!
In my particular case, I wanted to display a link to a particular page, so for me, this is my code:
foreach($order->get_items() as $item) { $_product = get_product($item['product_id']); if ($item['product_id']==154) { echo '<h2 class="submit-script"> <a href="' . get_bloginfo('url') . '/step-2?first_name='.$order->billing_first_name. '&last_name=' . $order->billing_last_name . '&street=' . $order->billing_address_1 . '&addtwo=' .$order->billing_address_2 . '&city='.$order->billing_city. '&state='.$order->billing_state.'&zip='.$order->billing_postcode. '&email=' .$order->billing_email. '&phone=' .$order->billing_phone. '">Click here to submit your script now.</a></h2>' ; } }
If I was going to do a redirect, here is what I would put:
foreach($order->get_items() as $item) { $_product = get_product($item['product_id']); if ($item['product_id']==154) { wp_redirect('https://www.yoururl.com/your-thank-you-page'); } }
Does this help you a bit more?
Forum: Plugins
In reply to: [WooCommerce] Redirect after checkout in WooCommerceUm, yes…not to be too snide, but did you even try the code I posted above? It will redirect to a custom page if desired using wp_redirect based on product ID.
Forum: Plugins
In reply to: Conditional Confirmation/Order Received Page based on Product or Category?After beating on this incessantly, I finally got what I was looking for, so I thought I’d post it. In my case, I wanted to customize the Order Detail/Confirmation page with a link to a form, but only when a certain product is purchased.
If you want something similar, put this in the order_details.php template:
global $woocommerce; $order = new WC_Order( $order_id ); /* This two lines above should already exist, but I have them here so you can see where to put the code */ foreach($order->get_items() as $item) { $_product = get_product($item['product_id']); if ($item['product_id']==154) { // Do what you want here..replace the product ID with your product ID } }
I also tested this by inserting a wp_redirect within the if statement and it seemed to work great, so I imagine you could customize this code with a bunch of if/elseif statements that redirect to different landing pages depending on the product purchased! Hopefully this helps someone!
Forum: Plugins
In reply to: [WooCommerce] Redirect after checkout in WooCommerceAfter beating on this incessantly, I finally found something that inched me closer to what is being requested here, so I thought I’d post it. In my case, I wanted to customize the Order Detail/Confirmation page with a link to a form, but only when a certain product is purchased.
If you want something similar, put this in the order_details.php template:
global $woocommerce; $order = new WC_Order( $order_id ); //This two lines above should already exist, but I have them here so you can see where I put my code foreach($order->get_items() as $item) { $_product = get_product($item['product_id']); if ($item['product_id']==154) { // Do what you want here..replace the product ID with your product ID } }
I also tested this by inserting a wp_redirect within the if statement and it seemed to work great, so I imagine you could customize this code with a bunch of if/elseif statements that redirect to different landing pages depending on the product purchased! Hopefully this helps someone!
Forum: Fixing WordPress
In reply to: Better way to manage all my custom menus…?Man, I was looking for the same thing. This is an old post, but just in case someone else needs this, WordPress 3.6 will FINALLY have this feature!!!
Forum: Plugins
In reply to: [Custom Post Type Permalinks] BBPress topic links in forums breakInteresting…that did not happen for me. Did you re-save your Permalink structure to flush the Permalinks cache?
There is a way to write that conditional function, but I am just not sure how to do it! ?? You should post this to WordPress Stack Exchange:
Forum: Plugins
In reply to: [Custom Post Type Permalinks] BBPress topic links in forums breakI finally figured out how to get these two plugins to work. It seems this plugin wants to derive the post type’s custom taxonomy parents and append them to everything. I just commented out this function which is on lines 247 to 254 of the plugin:
/* // Commented out to fix BBPress 404 errors $parentsDirs = ""; if( !$leavename ){ $postId = $post->ID; while ($parent = get_post($postId)->post_parent) { $parentsDirs = get_post($parent)->post_name."/".$parentsDirs; $postId = $parent; } } */
This fixes BBPress, but if you are using the Custom Post Type Permalinks plugin with nested custom taxonomies, you’re gonna have a bad time.
But, if not, this is a decent enough fix.
Catch more flies with honey, eh?