5,970 reputation
11337
bio website markratledge.com
location Missoula, MT
age
visits member for 4 years, 7 months
seen 30 mins ago

Jan
9
revised Updating URLs in many posts
update link
Jan
9
revised Proper approach to moving complete site from one domain to another AND preserve widgets
update link
Jan
9
revised Best function/method to access wp-config?
update link
Jan
9
revised how to move another machine or server without dealing with IP
update link
Jan
9
revised After moving my site from a dev subdomain, to root, all my custom meta data is gone
update link
Jan
9
revised What SQL Query to do a simple find and replace
update link
Jan
9
revised What SQL Query to do a simple find and replace
update link
Jan
9
revised Export WordPress from one domain to another domain
update link
Jan
9
revised Losing all my text and entries on ColorWay Theme
added 1 character in body
Jan
9
revised Losing all my text and entries on ColorWay Theme
added link
Dec
17
comment add_action and remove_action if custom field exists
Thanks, good point, and I did that. Genesis also gives options where the breadcrumbs display (I added a screenshot to my question) as to archives, etc.
Dec
17
revised add_action and remove_action if custom field exists
added 152 characters in body
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