Thread Starter
a4jp
(@a4jpcom)
I found the file to manually edit the defaults for now but it would be great to have a settings page with options. Is there anyway to can help with coding?
plugins\flex-posts\blocks\list\block.js
Plugin Author
Tajam
(@tajam)
Yes, you can change default values from block.js. If you already have the settings page (there are many tutorials to create a settings page), you can get the values with get_option(), and then you need to add the values into the wp_localize_script() argument in block.php, so you can use the values in the js file.
Thread Starter
a4jp
(@a4jpcom)
I put a copy of the plugin in GitHub so it can be worked on easily. https://github.com/a4jp-com/flex-posts Are you in GitHub? I’ll add you as so you can control stuff there as well if you like.
-
This reply was modified 4 years, 5 months ago by
a4jp.
Plugin Author
Tajam
(@tajam)
Sorry, we don’t use github yet. We use only private repository for now.
Thread Starter
a4jp
(@a4jpcom)
Okay. I’m happy to add code when the settings are open. I’m sure lots of others will also help out. We all love open source stuff.