andrewtayloruk82
Forum Replies Created
-
Thank you so much for this. It worked perfectly.
Have a great day.
Hi,
I don’t want to ask for something that’s outside the scope of support i.e. I don’t want you to write any custom code but I can’t get any of your filters to change the output in the dropdown we’re using. Even if I strip all the ACF specific stuff out and just return a generic placeholder name the IDs are the only thing I can get to output in the dropdown. It’s as if the filters aren’t doing anything. Can you double check that you can get the wpc_filter_post_meta_term_name filter to override the IDs in the test dropdown you created?
— Message removed —
- This reply was modified 6 months ago by andrewtayloruk82.
Thanks Victor, I’m able to replicate the same as your tests now but the value label example in the link you provided doesn’t do anything as the relationship field returns an entire post object and I’m not sure the filter works any longer as the notice on the page says it only works on 1.8.5 and older. Even when I strip the code right back and try to replace term_name with a hardcoded placeholder it doesn’t do anything.
Thanks in advance.
Forum: Plugins
In reply to: [Filter Everything — Product Filter & WordPress Filter] Order of termsThanks for your help. This is now working.
Thanks, I tweaked the example slightly to support multiple terms.
// Define the callback function for the 'wpc_chips_term_name' filter hook
function modify_chips_term_name($term_name, $term, $filter) {
// Define an associative array with term IDs as keys and modified names as values
$term_modifications = [
704 => 'Auto: Yes', // Auto: Yes | replacing value of Yes
678 => 'Auto: No', // Auto: No | replacing value of No
];
// Check if the current term's ID exists in the modifications array
if (array_key_exists($term->term_id, $term_modifications)) {
// Return the modified name for the specific term ID
return $term_modifications[$term->term_id];
}
// Return the original term name if the term ID is not in the modifications array
return $term_name;
}
// Hook the callback function to the 'wpc_chips_term_name' filter hook
add_filter('wpc_chips_term_name', 'modify_chips_term_name', 10, 3);Forum: Plugins
In reply to: [MAS Companies For WP Job Manager] Pending CompaniesThis has been resolved. Thanks for your reply.
Forum: Plugins
In reply to: [MAS Companies For WP Job Manager] Pending CompaniesHi, I’ve removed all extra plugins and this is still happening. Everytime i post a job using a test account and select a company already in the system a pending company is added.
What additional info can I provide to resolve this.
- This reply was modified 1 year ago by andrewtayloruk82.
Forum: Plugins
In reply to: [MAS Companies For WP Job Manager] 1.0.10 version problemThe company form is now working. We’ll let you know if we experience any further issues.
Forum: Plugins
In reply to: [MAS Companies For WP Job Manager] PHP 8.2Thanks for the reply, here’s some examples:
'Creation of dynamic property MAS_WP_Job_Manager_Company::$plugin_url is deprecated', file: 'wp-content/plugins/mas-wp-job-manager-company/mas-wp-job-manager-company.php', line: 72,?…}
‘Creation of dynamic property MAS_WP_Job_Manager_Company::$plugin_dir is deprecated’, file: ‘wp-content/plugins/mas-wp-job-manager-company/mas-wp-job-manager-company.php’, line: 73,?…}
‘Creation of dynamic property MAS_WP_Job_Manager_Company::$company is deprecated’, file: ‘wp-content/plugins/mas-wp-job-manager-company/mas-wp-job-manager-company.php’, line: 122,?…}
Creation of dynamic property MAS_WP_Job_Manager_Company::$cpt is deprecated’, file: ‘wp-content/plugins/mas-wp-job-manager-company/mas-wp-job-manager-company.php’, line: 125,?
Creation of dynamic property MAS_WP_Job_Manager_Company::$shortcode is deprecated’, file: ‘wp-content/plugins/mas-wp-job-manager-company/mas-wp-job-manager-company.php’, line: 128,?
Forum: Plugins
In reply to: [Co-Authors Plus] Allow custom role to be selectedManged to fix this using coauthors_edit_author_cap.
Thanks.
Forum: Plugins
In reply to: [AMP] Only post type “Post” supported?Try the following in your themes functions.php file:
function amp_add_cpt() { add_post_type_support('CUSTOM-POST-TYPE', AMP_QUERY_VAR); } add_action( 'amp_init', 'amp_add_cpt' );
- This reply was modified 8 years, 6 months ago by andrewtayloruk82.
Forum: Plugins
In reply to: [WordPress Simple Shopping Cart] Pass product id to paypalHi,
Thanks for your reply, i just saw item_number in the wp_cart_button_handler array.
How much modifying would it take to pass the data selected in the variations to paypal as options rather than in the item title?
Thanks
Forum: Plugins
In reply to: Username or user_id added to upload pathNice one! ??
I found out how to do this.
Forum: Themes and Templates
In reply to: Widget in main content columnI’ve read that but don’t understand how i’d only display one widget in the main content column.