6,206 reputation
11638
bio website markratledge.com
location Missoula and Choteau, MT
age
visits member for 4 years, 10 months
seen 2 days ago

Me http://markratledge.com

Elance profile https://www.elance.com/s/songdogtech/

WordPress.org http://wordpress.org/support/profile/songdogtech

(Unemployed) professor of English and (unemployed) instructor of Computer Science, (employed) WordPress dev, and dog walker, carpenter, mechanic, photographer, writer, etc.


Dec
17
accepted add_action and remove_action if custom field exists
Dec
17
comment add_action and remove_action if custom field exists
Ah, that works! I didn't know enough to be able to describe what I was trying to do. I now see that the remove and add actions need to be in a separate function called first, before they are modified by customfield_breadcrumbs. Thanks for your patience.
Dec
17
comment add_action and remove_action if custom field exists
@PatGilmour, thanks, but there is no Yoast involved.
Dec
17
comment add_action and remove_action if custom field exists
@Milo, the breadcrumbs are already enabled by the core Genesis breadcrumb function; I need to unhook them and rehook my own bredcrumb function customfield_breadcrumbs if a custom field exists. That's why I'm trying remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' ); add_action('genesis_before_loop', 'customfield_breadcrumbs'); inside the if statement.
Dec
16
comment add_action and remove_action if custom field exists
customfield_breadcrumbs needs to get called after remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
Dec
16
comment add_action and remove_action if custom field exists
@Milo, thanks, well, that's maybe why I'm asking the quesiton :) I don't why adding that action where it is right now doesn't work.
Dec
16
comment add_action and remove_action if custom field exists
Interesting, I don't know. I just added to my question the core breadcrumb function from Genesis for reference; there are no priority calls in it. So I need a priority?
Dec
16
revised add_action and remove_action if custom field exists
added 397 characters in body
Dec
16
comment add_action and remove_action if custom field exists
Rarst, thanks, see edited quesiton. I get the corect values for $post and $crumb But the if statement doesn't remove_action and add_action.
Dec
16
revised add_action and remove_action if custom field exists
added 561 characters in body
Dec
16
asked add_action and remove_action if custom field exists
Dec
8
awarded  Popular Question
Dec
7
revised Allow Multisite admin to edit users
title fix
Dec
1
revised WooCommerce with thousands of products - site is very slow - optimize db queries?
added 8 characters in body
Nov
28
comment WooCommerce Total # orders
@wordpress_designer: "Gramps?" To me, that's a compliment :)
Nov
27
comment Issues with forcing HTTPS
VelvetBlue is good, but that won't change links in files like functions.php, etc; they are files and are not the database. And yes, a slideshow that pulls an ad like that is bad news.
Nov
26
comment WooCommerce Total # orders
@wordpress_designer: Please get a life. Somewhere.
Nov
26
comment WooCommerce Total # orders
@wordpress_designer: Read the FAQ for the site, follow the rules here, or don't participate.
Nov
26
revised Issues with forcing HTTPS
added 16 characters in body
Nov
26
answered Issues with forcing HTTPS