fauf2522
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Problems with Multisite WordPress InstallationSolved it.
Pardon my ignorance,
I forgot to mention that the new wordpress install was only the new files, but to an old database that used the multisite network…
The new installation had worked as long as the multisite network was turned off, so i could view the main “blog” – english version of page.
Only after enabling multisite it stopped working, it seems because of url address in wp_blogs, which led to local ip address accessible only throuugh domain/vpn…After changing these entries in wp_blogs to correct url, it started working.
Now I understand – yeah, it works this way – i can now read passed variables even in view.js what i needed.
Yes, it’s kinda hacky approach too, but as I don’t know any better solution, I’ll stick to this now.
Thank you
Sorry, but i don’t understand how would I use that function for my specific block.
according to documentation: wp_print_scripts() – Function | Developer.www.remarpro.com
the parameter needed for the function is script handle which i don’t know/have, because all of my .js scripts are initialized with block.json file, so it seems i can’t use it for my specific needs. (or can i?)should I scrap whole view.js and register a different .js script with php function
wp_register_script()
, where I would add contents of original view.js, and then use the handle to pass variables to it?
But this seems as a little bit hack for me. If possible I would like to use existing .js scripts.Thanks
Forum: Developing with WordPress
In reply to: JSX onClick listener in custom static block pluginThanks, this solved my issue