This would be a cool feature add – a filter for children of current page and siblings of current page?
/**
* Display children of current page using the Advanced query loop block
* Add class is-style-query-current-parent to Advanced query loop > Post Template block
*/
add_filter( 'query_loop_block_query_vars', function ( $query, $block ) {
if ( str_contains( $block->attributes['className'] ?? '', 'is-style-query-current-parent' ) ) {
$query['post_parent'] = get_the_ID();
}
return $query;
}, 10, 2 );
/** Create the block style */
register_block_style( 'core/post-template', [ 'name' => 'query-current-parent', 'label' => 'Current Parent' ] );
]]>A quick question…
Is there any way to filter posts by a dynamic value?
for example….
Custom post type X has 100 posts. each post has a custom field called org populated with a value. All users have a custom user field also called org. I want user 1 with org value cheese to only see posts of type x which also have the odf value cheese.
thank you!
]]>From the meta query, I can see the custom field, but am unable to figure out the next steps.
1. How can I set “now” as the comparison value
2. Does the plugin support different field types, as looking for similar code examples, it says that field type must be also defined separately.
Very much would prefer a plugin option and AQL looks like the most promising so far.
Thanks
The email that we recieve as confirmation and others does not have the information appearing. It remains a hashtag.
New booking of #service_name
It appears as is without fetching the service name which is supposed to be. Please help.
Many thanks,
Alan
]]>This image can no longer be found – throws 404.
How about adding hosted images for buttons for Add to Google Calendar and Add to Outlook Calendar?
Thank you.
]]>Unfortunately, the JS consoles in these different browsers are not giving any useful information about the error.
]]>So instead of something like “16:00 (UTC-07:00)–17:00 (UTC-07:00)”, it would be like “16:00–17:00 (UTC-07:00)”.
We could use #_EVENTSTARTTIME–#_EVENTENDTIME to show just the times without timezones, but there doesn’t seem to be a way to show the timezone of an event independently of #_EVENTTIMES.
]]>get_terms()
to get them but the returned array of objects doesn’t include the category colors, and I can’t figure out how to use #_CATEGORYCOLOR
in a PHP function.
]]>Hello Amelia team.
I need to add the Placeholder %payment_link_woocommerce%. But when I send the email I see that the client is not receiving the real link. The placeholder I pasted in the notification are being sent (%payment_link_woocommerce%) and not the actual link, the replacement is not happening when sending the email, and I don’t know why.
Can someone help me please?
Thanks in advance.
]]>