Creative Andrew
Forum Replies Created
-
Forum: Plugins
In reply to: [Single Post Query Loop Selector] Showing multiple posts instead of just one.Hi Tamnik,
Thank you for reaching out and for your suggestion! I’ve thought about this, and it’s not the first time it’s been brought to my attention. I understand the need for a feature that allows displaying multiple posts rather than just one.
I’ll do my best to include this in a future release!Forum: Plugins
In reply to: [Single Post Query Loop Selector] Ability to select from other post types?Hi Darek, thanks for your message.
This feature has been requested several times and I’m planning to add it in the next release. Hopefully by the end of the month after doing some tests.
I will keep you posted here once it’s ready!
Best regards,
AndrewForum: Reviews
In reply to: [Single Post Query Loop Selector] Excellent pluginHi Tamnin, thanks a lot for your positive review.
I do plan to maintain and expand this plugin in the future.
Let me know if you need anything else,
Best regards, Creative AndrewForum: Reviews
In reply to: [Single Post Query Loop Selector] Simply worksThanks a lot for your review.
Best regards,
AndrewForum: Plugins
In reply to: [Single Post Query Loop Selector] Plugin ClashesHi!
Do you mind trying the latest version to see if the problem persists?
Best regards,
AndrewForum: Plugins
In reply to: [Single Post Query Loop Selector] You should replace your queryProblem fixed in latest version
Forum: Plugins
In reply to: [Single Post Query Loop Selector] You should replace your queryWhile working on this I noticed a couple of things.
- The
query_loop_block_query_vars
filter’s$block
param doesn’t pass the variation itself. So it’s not possible to check'creativeandrew/single-post-query-loop-selector' === $block->parsed_block['attrs']['namespace']
- That might explain why in the documentation it is mentioned the need to have access to the
pre_render_block
. - I was able to avoid my filter from being applied to other queries by comparing the
queryId
from the one coming from thepre_render_block
andquery_loop_block_query_vars
function pre_render_block( $pre_render, $parsed_block ) { if ( isset( $parsed_block['attrs']['namespace'] ) && 'creativeandrew/single-post-query-loop-selector' === $parsed_block['attrs']['namespace'] ) { add_filter( 'query_loop_block_query_vars', function ( $default_query, $block ) use ( $parsed_block ) { if ( isset( $parsed_block['attrs']['query']['include'] ) && isset( $block->context['queryId'] ) && $block->context['queryId'] === $parsed_block['attrs']['queryId'] ) { $default_query['post__in'] = $parsed_block['attrs']['query']['include']; } return $default_query; }, 10, 2 ); } return $pre_render; }
- This reply was modified 7 months, 3 weeks ago by Creative Andrew.
- This reply was modified 7 months, 3 weeks ago by Creative Andrew.
- This reply was modified 7 months, 3 weeks ago by Creative Andrew.
Forum: Plugins
In reply to: [Single Post Query Loop Selector] You should replace your queryHowever, wouldn’t it be better to do:
add_filter( 'query_loop_block_query_vars', __NAMESPACE__ . '\filter_my_query', 10, 2 ); function filter_my_query( $query, $block ) { if ( isset( $block->parsed_block['attrs']['namespace'] ) && 'creativeandrew/single-post-query-loop-selector' === $block->parsed_block['attrs']['namespace'] && ! empty( $block->context['query']['include'] ) ) { $query['post__in'] = $block->context['query']['include']; } return $query; }
- This reply was modified 7 months, 4 weeks ago by Creative Andrew.
Forum: Plugins
In reply to: [Single Post Query Loop Selector] Add Featured ImageHi Carlos,
I think this already supports the feature image block.
You just need to add it.Forum: Plugins
In reply to: [Single Post Query Loop Selector] You should replace your queryHi Willy,
Thanks a lot for your message. Yes, this was reported here as well:
https://github.com/creative-andrew/single-post-query-loop-selector/issues/1
I will be amending the code shortly and submitting a new release!Forum: Plugins
In reply to: [Single Post Query Loop Selector] Plugin ClashesHi Cate, thanks for your message.
I am releasing a new version that should solve the problems that you are having.
Apparently after selecting a post, other loops were affected.
https://github.com/creative-andrew/single-post-query-loop-selector/issues/1
Might this be related to the issue you are having?
Best regards,
AndrewHi there!
What about adding bold to some words in the option dropdown list?
Would that be possible?
Best regards,
AndrewThere some discussion of this issue here: https://core.trac.www.ads-software.com/ticket/55751
Forum: Reviews
In reply to: [Export User Data] Great plugin!I forgot to thank the team who developed it ??
- The