Title: rbaugh's Replies | WordPress.org

---

# rbaugh

  [  ](https://wordpress.org/support/users/rbaugh/)

 *   [Profile](https://wordpress.org/support/users/rbaugh/)
 *   [Topics Started](https://wordpress.org/support/users/rbaugh/topics/)
 *   [Replies Created](https://wordpress.org/support/users/rbaugh/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/rbaugh/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/rbaugh/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/rbaugh/engagements/)
 *   [Favorites](https://wordpress.org/support/users/rbaugh/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Block Template in Plugin](https://wordpress.org/support/topic/block-template-in-plugin/)
 *  Thread Starter [rbaugh](https://wordpress.org/support/users/rbaugh/)
 * (@rbaugh)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/block-template-in-plugin/#post-17042751)
 * You can try and use [this gist](https://gist.github.com/rbaugh/3c17d72c569c2b2dd5799ddf9d6032c9)
   to help you out. I am doing this call in my CPT class. The `issue-section` is
   a query_var that I use to connect to a taxonomy and what I use to load in the
   template.
 * This doesn’t load in the template from the plugin into the FSE and it doesn’t
   allow for making modifications through FSE, but it does allow for overriding 
   the template in the theme. SO you can at least have a template in the plugin 
   and then override by the theme. While you can actually make the edits to the 
   theme template, they do not render based on this code.
 * I haven’t gone back in to see if I can locate the modified theme template through
   FSE to load it instead of the actual file. Just have to lookup the `wp_template`
   post type that matches the file name, but not sure just yet how to allow for 
   adding other FSE templates to this.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Block Template in Plugin](https://wordpress.org/support/topic/block-template-in-plugin/)
 *  Thread Starter [rbaugh](https://wordpress.org/support/users/rbaugh/)
 * (@rbaugh)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/block-template-in-plugin/#post-16723953)
 * For additional reference, using the `cpt-slug` as my CPT slug, the default block
   templates would be `$theme/templates/archive-cpt-slug.html` and `$theme/templates/
   single-cpt-slug.html`. For the url call where I want to have the taxon appended
   to the end of a post item’s url, I would then want to load in a template like`
   $theme/templates/single-cpt-slug-{taxon-term}.html` or `$theme/templates/single-
   cpt-slug-{taxon-name}.html`. This would allow me to render out a block template
   that is based on the taxon name or term.
    -  This reply was modified 3 years, 3 months ago by [rbaugh](https://wordpress.org/support/users/rbaugh/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Organizer] Undefined array key “SERVER_NAME” when running under external Cron](https://wordpress.org/support/topic/undefined-array-key-server_name-when-running-under-external-cron/)
 *  [rbaugh](https://wordpress.org/support/users/rbaugh/)
 * (@rbaugh)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-server_name-when-running-under-external-cron/#post-16437211)
 * Sorry, I didn’t get any notices of your replies. The site does not have any folders
   as part of the root url. It is just the domain.
 * When I was trying to figure out what was going on I was outputting the value 
   of the url to check it as I was under the same impression as you. That maybe 
   the url wasn’t matching. But it was matching. I was outputting the value of the
   permalink in the `set_requested_permalink` function.
 * I went back and copied this value from the logs I still have around and it is
   matching the value that was set in the filter rule.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Organizer] Undefined array key “SERVER_NAME” when running under external Cron](https://wordpress.org/support/topic/undefined-array-key-server_name-when-running-under-external-cron/)
 *  [rbaugh](https://wordpress.org/support/users/rbaugh/)
 * (@rbaugh)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-server_name-when-running-under-external-cron/#post-16430297)
 * Jeff,
   The changes seems to get things back, but I think the issue is in the get_bloginfo
   function. When I applied 10.1.8 and had the issue, I just changed the code back
   in the MU class file and everything started working again. I see you added checks
   for the Server variable first and then resort to the get_bloginfo function, but
   I wonder if that may cause the same issues in which this still ignores the code
   this plugin provides and loads all plugins as default. It may not be needed for
   a CLI call, but just sharing. I haven’t dug in further, but wonder if somehow
   the get_bloginfo is loading in all plugins as that line causes your plugin to
   not function as needed. If I just replace the if statements with the one line
   from 10.1.8 it breaks the plugin again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin Organizer] Undefined array key “SERVER_NAME” when running under external Cron](https://wordpress.org/support/topic/undefined-array-key-server_name-when-running-under-external-cron/)
 *  [rbaugh](https://wordpress.org/support/users/rbaugh/)
 * (@rbaugh)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/undefined-array-key-server_name-when-running-under-external-cron/#post-16426885)
 * I seem to have an issue with the latest change. While the code may be able to
   get the url, it seems to cause issues in which this plugin isn’t limiting plugins
   as it once was. If I revert back to 10.1.7, the plugins disabled in the filters
   are working again, but not when 10.1.8 is installed.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Can’t upgrade DB](https://wordpress.org/support/topic/cant-upgrade-db/)
 *  Thread Starter [rbaugh](https://wordpress.org/support/users/rbaugh/)
 * (@rbaugh)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/cant-upgrade-db/#post-15822241)
 * Once the transients were cleared, the DB update complete showed and the WC DB
   Version is not matching the WC version.
 * Thanks for the info
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Can’t upgrade DB](https://wordpress.org/support/topic/cant-upgrade-db/)
 *  Thread Starter [rbaugh](https://wordpress.org/support/users/rbaugh/)
 * (@rbaugh)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/cant-upgrade-db/#post-15822103)
 * Some of the support report I didn’t want shared on the public since I am managing
   for a client. But I will try the transients and see what it does. I had cleared
   the memcache in case it was something with that, but nothing changed.

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