Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter visionm

    (@visionm)

    Well 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).

    Thread Starter visionm

    (@visionm)

    Thanks!

    Thread Starter visionm

    (@visionm)

    Thanks! I believe that you are correct.

    Thread Starter visionm

    (@visionm)

    well 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.

    Thread Starter visionm

    (@visionm)

    Thank 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.
    Thread Starter visionm

    (@visionm)

    So 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.

    Thread Starter visionm

    (@visionm)

    Well 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.

Viewing 7 replies - 1 through 7 (of 7 total)