5,722 reputation
11237
bio website markratledge.com
location Missoula, MT
age
visits member for 4 years, 4 months
seen 3 hours ago

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
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
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.
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
24
comment WooCommerce Total # orders
@wordpress_designer: what's your point?
Nov
24
comment WooCommerce Total # orders
Third party plugins and themes are off topic here.
Sep
26
comment Google Authorship on a multi-author blog?
It's because Google has ended the authorship and image in SERPs program. Read support.google.com/webmasters/answer/6083347?hl=en
Aug
25
comment Use an array of page template slugs and $hook
Just found out this breaks in the 4.0 Beta. Had to go back to my original function above with no array.
Aug
18
comment Use an array of page template slugs and $hook
Thanks! Works great. I didn't know that there was no dedicated hook for user management.
Aug
14
comment How do I change site url to my new domain?
Don't use simple SQL change queries in the database via adminer or phpmyadmin. WordPress and some themes store configurations and URLs in serialized data, which a simple SQL query won't correctly handle.
Jul
28
comment WordPress MultiSite Won't Work on Google AppEngine
Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope here on WP Dev.
Jul
28
comment My php code is not being executed
By 'text editor part of a webpage", do you mean in the text editor in WordPress admin? You can't execute PHP in the WordPress editor without a plugin or function in functions.php that specifically allows PHP execution. It's for security.