vchoo
Forum Replies Created
-
Solved by putting this in functions.php
add_filter( 'wpseo_breadcrumb_links', function( $links ) {
if ( is_singular('project') ) {
$post = get_queried_object();
$terms = get_the_terms( $post->ID, 'project_category' );
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
$term = reset( $terms ); // Get the first term
array_splice( $links, -1, 0, array(
array(
'url' => get_term_link( $term ),
'text' => $term->name,
)
));
}
}
return $links;
});Forum: Plugins
In reply to: [Relevanssi - A Better Search] TablePress in ACF Field not being indexedThis worked, thank you so much!
Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search terms in TablePress not foundIs it possible that because the TablePress shortcode is embedded in an advanced custom field? That’s why Ivory Search cannot expand this shortcode when searching?
Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search terms in TablePress not foundHi, I reset both the form and settings, disabled all plugins except for TablePress, TablePress Extension: Responsive Tables, Ivory Search, and WooCommerce
Also activated default Twenty Twenty Three theme
In the settings also tried to make sure all post types are covered, and re-indexed
Still not working unfortunately..
Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search terms in TablePress not foundHi, below are a few pages where we have tablepress tables, thank you!
https://hayn.wpengine.com/product/swage-t-terminals/
https://hayn.wpengine.com/product/swage-shroud-terminals/
https://hayn.wpengine.com/product/ball-end-fittings/
https://hayn.wpengine.com/product/structural-tension-rod-systems/
https://hayn.wpengine.com/product/failsafe-backstay-insulators/
Forum: Plugins
In reply to: [Ivory Search - WordPress Search Plugin] Search terms in TablePress not foundNot just hyphens but even product numbers like ’12CTF14′ don’t get searched either
Thank you
Hi I’m facing anther issue getting the custom field values to show using another filter since I’m experiencing other issues with Paypal standard gateway.
I’m using the below code but it’s passing the values as NULL
I’m wondering why I’m unable to get the custom field data here, I appreciate your help!
add_filter('ae_ppec_custom_parameter', 'own_ae_ppec_custom_parameter', 10, 1); function own_ae_ppec_custom_parameter($parameter_json) { // apply any changes here $order = new WC_Order($order_id); $field_value = get_post_meta( $order->id, $field_name, true ); $test = array('Student Name' => $field_value['confirm_student_name'][0], 'School Name' => $field_value['school_name'][0]); $parameter_json = json_encode($test); return $parameter_json; }Thank you so much for the examples, it helped me tremendously in constructing the filter!
Finally found something that works, it’s not the prettiest but it works. For some reason the information won’t append to shipping/billing address but it will append/prepend to the item name
add_filter(‘woocommerce_paypal_args’, ‘th_custom_field_to_paypal’, 10, 2);
function th_custom_field_to_paypal($paypal_args, $order){
$field_value = get_post_meta( $order->id, $field_name, true );$custom = $paypal_args[‘item_name_1’];
$custom = ‘Student Name: ‘ . $field_value[‘confirm_student_name’][0] . ‘<br>’ . ‘ School Name: ‘ . $field_value[‘school_name’][0] . ‘<br><br>’ . $custom;
$paypal_args[‘item_name_1’] = $custom;return $paypal_args;
}Thank you so much again!!
Hi thank you so much, I was wondering if there’s an example I could reference for passing the additional custom fields to Paypal?
So far I only have this but not sure how to manipulate the data:
add_filter(‘woocommerce_paypal_args’, ‘custom_paypal_args’, 10, 2 );
function custom_paypal_args( $args, $order ) {
$order_meta = get_post_meta( $order_id, $field_name, true );
//add custom field data to pass to Paypalreturn $args;
}Thank you so much!
Great! Thank you so much! Yes I’m running X theme with Cornerstone as well, I submitted a support ticket and look forward to the update! :))
- This reply was modified 8 years, 7 months ago by vchoo.