dbrabyn
Forum Replies Created
-
Forum: Plugins
In reply to: [Post Type Switcher] Admin Columns Pro issueResetting the columns solved it for me.
Forum: Plugins
In reply to: [Post Type Switcher] Admin Columns Pro issueEncountering this bug too.
Forum: Plugins
In reply to: [Breeze - WordPress Cache Plugin] Breeze and ACFAny chance Breeze can clear be made to ACF option pages too?
- This reply was modified 3 years, 6 months ago by dbrabyn.
Forum: Plugins
In reply to: [Breeze - WordPress Cache Plugin] Breeze and ACFIt doesn’t clear when an ACF Option page is updated.
Hey,
Missing word in your sentence and I’m not sure what you saying I’m afraid.
@hwk-fr Fantastic. Worked perfectly. I’m all set.
Correct but ultimately I need to be able to have multiple such filtered custom sets on different options page (that said, I guess the ultimate would be to be able to have multiple sets on a same OP, i.e. target specific fields).
Remove the domain name for security reasons even if it’s locally hosted?
That’s what I had understood.
Tried it. No luck I’m afraid. No filtering happening.
It checks against the page slug, right? Not the full screen ID.
The site is running on FlyWheel’s Local. Does that change anything?
At this point I think I am going to simply put together 2 select fields with the classes of the icons I need. My client won’t see the actual icons but so be it.
This plugin is excellent and a real service to the ACF community. And your support Matt has been spectacular.
Thanks again.
Thanks hwk.
Unfortunately that has resulted in no filtering at all.
Both icon fields are repeater sub_fields. Does that change things?
Just occurred to me that the field may not in fact be working perfectly as I checked it was before adding the second field.
And indeed it isn’t. After removing the OP ID check, the set on options page A gets filtered as expected but the set on options page B gives “no results found”.
If I deactivate the group field located on option page A, the set on options page B still gives “no results found”.
Is there an issue with using the get_icons function across multiple field groups?
You’re right, the page check is working.
So the fail would come from here (ellipsis for more of the same):
$results = array( "list" => array( "fas" => array( "fas fa-trophy" => "<i class=\"fas\"></i> trophy", ... "fas fa-grin-squint-tears" => "<i class=\"fas\"></i> grin-squint-tears", ), ), "details" => array( "fas" => array( "fas fa-birthday-cake" => Array( "hex" => "\f1fd", ) ), ... "fas" => array( "fas fa-award" => Array( "hex" => "\f559", ) ), ) );
Used in a sub_field in a repeater.
Could it be a priority thing? I have
add_filter( 'ACFFA_get_icons', 'get_icons', 10, 1 );
The sub_field is showing all icons.
I did check using the function mentioned at the end of this post.
And the slug is indeed there. Your 2 methods also show the same:
public 'id' => string 'toplevel_page_race-calendar'
And I am checking with:
if (strpos($screen->id, "race-calendar") == true) {}
The OP was created with ACF Extended maybe that is relevant although I don’t quite see why it would be.