visionm
Forum Replies Created
-
Forum: Plugins
In reply to: [Cleverwise Daily Quotes] shortcode optionsWell the main thing I was looking for was a way to be able to see different quotes without having to wait a full day, like maybe just getting a random quote or being able to press a button to get the next quote. This is specifically for testing purposes to have an easier way to be able to see how the quotes will appear (formatting).
Forum: Plugins
In reply to: [Cleverwise Daily Quotes] shortcode optionsThanks!
Forum: Plugins
In reply to: [Cleverwise Daily Quotes] Unexpected Output upon ActivationThanks! I believe that you are correct.
Forum: Plugins
In reply to: [Cleverwise Daily Quotes] Unexpected Output upon Activationwell I tried this on a locally hosted wordpress install and those were the results I had there but I just wanted to mention now that I have used it on a live site on a web host I did not see any of the messages mentioned above.
Forum: Developing with WordPress
In reply to: setting custom posts per page affects admin panelThank you. This seems to be working
add_action( 'pre_get_posts', 'custom_query_vars' ); function custom_query_vars( $query ) { if ( !is_admin() ) { if ( defined( 'REST_REQUEST' ) && REST_REQUEST ) { return; } else { $query->set( 'posts_per_page', -1 ); } } }My only question here is that if is_admin “determines whether the current request is for an administrative interface page” why is this not preventing “collisions” here causing problems in the gutenburg editor?
- This reply was modified 3 years, 8 months ago by visionm.
Forum: Fixing WordPress
In reply to: Slots in Reusable BlockSo in my case I am working on a trilingual site… So right now I have I separate page for every language but I would like to share the components of each page. Right now since the inner content of each component on each page is different I cannot use a Reusable Block or a template part. So Whenever I want to make a minor change to the component I have to do the same for each page for each translation.
… Now that I am writing this I am thinking that there could be a better plugin that for managing translations than the one that I am using that would be able to handle this just fine and that would be great if there was but thats not exactly the point.
In Vue you have components and in those components you can have slots where you can put simple things like text but you can also slot in other components. In this way you are able to change one thing or the other in one place and the change will be reflected amongst all of the instances of the component independent of the “child/parent” relationship of each component.
This is one of the things that gives Vue its power and would be great to see something similar in WordPress seeing how (or at least from what I have seen). the block editor is leaning heavily on React, which I have not studied but also, in one way or another, has this type of functionality.
Forum: Fixing WordPress
In reply to: Revert Changes Made in Full Site EditorWell so after playing around more with the FSE I found the option hidden in the menus. If anyone else is looking I found it under the top menu bar in the middle to show template details > browse all templates then from there you can press the three dots to the right side of the templates that have been modified and select Clear Customizations.