nitrospectide
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Query Loop] ACFs with Post Meta queryAh! Nice. I just made use of this. I had a block that pulled up whatever the latest eBook is in our collection, and now I can create blocks that target specific eBooks based on unique values for the PDF filename ACF I have on each. This is very useful.
Forum: Plugins
In reply to: [Permalink Manager Lite] Slug is completely different from permalink?Thank you!
I did not realize that what I was seeing in the permalink editor field was separate from the page slug. The setting for showing the native slug field was exactly what I needed. I updated my slug, matched my template name, and it works perfectly now.
Forum: Fixing WordPress
In reply to: Query Loop block stopped showing columnsIt turned out that I had a line dequeuing a stylesheet that had previously not been in use (for performance reasons), but now was in use. The change in the Query Loop block must have moved the styles from one sheet to the other. I removed the dequeue of that sheet, and now it works again.
- This reply was modified 1 year, 3 months ago by nitrospectide.
Forum: Plugins
In reply to: [Advanced Query Loop] ACFs with Post Meta queryThank you for the very helpful answers.
Please keep in mind that the ACF fields will need to be exposed to the REST API for this to display correctly in the block editor.
What do I need to do to do this?
Unfortunately, without using a custom extension for AQL, I don’t think you’ll be able to display the posts linked in the ACF Relationship as it’s more complicated that simple post meta queries.
How hard would this be to add? Can it be a feature request?
Do you have a roadmap for your plans on this nice, and very much needed plugin? Have you ever looked at Drupal’s Views module? It’s an interesting model of a query builder for this sort of application.
- This reply was modified 1 year, 4 months ago by nitrospectide.
Forum: Developing with WordPress
In reply to: Query Loop Block Variation not workingDone
Forum: Developing with WordPress
In reply to: Query Loop Block Variation not workingI somehow missed when your reply came in via email. Thank you! This fixes it. ??
Forum: Developing with WordPress
In reply to: Query Loop Block Variation not workingIs this functionality not yet in widespread use?
It’s not the archive page. It’s a regular page, on which I have custom content designed to be the “top page” for that site section.
Forum: Developing with WordPress
In reply to: Query Loop Block Variation not working@threadi Here are the contents for my variations.js file, which I pull in via enqueuing in functions.php:
wp.domReady( function() { const MY_VARIATION_NAME = 'my-plugin/services-list'; registerBlockVariation( 'core/query', { name: MY_VARIATION_NAME, title: 'Services List', description: 'Displays a list of Services', isActive: ( { namespace, query } ) => { return ( namespace === MY_VARIATION_NAME && query.postType === 'services' ); }, icon: /** An SVG icon can go here*/, attributes: { namespace: MY_VARIATION_NAME, query: { perPage: 6, pages: 0, offset: 0, postType: 'services', order: 'desc', orderBy: 'date', author: '', search: '', exclude: [], sticky: '', inherit: false, }, }, scope: [ 'inserter' ], } ); });
As mentioned in my original post, the enqueuing is working, and I can create other block variations. But I will include my enqueuing code for completeness:
function enqueue_block_variations() { wp_enqueue_script( 'my-block-variations', // handle for script once loaded get_stylesheet_directory_uri() . '/js/variations.js', array( 'wp-blocks', 'wp-dom-ready', 'wp-edit-post' ) // loads dependencies ); } add_action( 'enqueue_block_editor_assets', 'enqueue_block_variations' );
Forum: Developing with WordPress
In reply to: Query Loop Block Variation not workingCan anyone clarify what I might be getting wrong here?
I created the schema by going in to the post, clicking through to Rank Math > Schema > Schema Generator in the right sidebar on the post edit page. In Schema generator, I chose the default Product schema, I then selected Advanced Editor, then after customizing, I clicked save as Template, and Save for this Post.
I have not applied the template to all of this product CPT via Admin > Rank Math > Titles & Meta > Products, because my customized schema template does not show up in the Schema Type dropdown.
Unfortunately, I can’t give you a link, since it’s in a private dev site.
I can not find the Review Location setting anywhere. Not in the Rank Math Schema Builder on the post itself, or in the settings pages.
I set up 2FA, and then the App password, but then for some strange reason, fluentSMTP would not let me save the new info. It kept giving me an error. After a bit, it suddenly worked. Maybe the app password needed a few minutes to be fully active.
Thank you so much for the help!
Forum: Developing with WordPress
In reply to: Renamed wp-login not logging me outI want to avoid using a plugin for this.
I discovered what the problem was. I had deleted the email sent TO the address in question, but not the one sent to the admin ABOUT the submission from that email address. When I put the address in the email log search box, the one to the admin that contained that address didn’t come up. Why?