Hi there,
I am trying to update the key of an existing module (td_module_17) like described here: https://forum.tagdiv.com/td_api_moduleupdate_key/
My code in my custom plugin is:
td_api_module::update_key('td_module_17', 'file', $this->plugin_path . '/parts/modules/td_module_90.php');
Unfortunately, I am getting a wp_booster_error:
wp_booster error:
td_api_base: A component with the ID: td_module_17 it's already registered in td_api_base
Am I using the API correctly and something is not working within the API? Or am I completely wrong?
Thanks!
Joerg
Ouch… Is it possible that the syntax for the custom plugin has changed to this: https://forum.tagdiv.com/developer-info/ and that I am using an old version of the API?
Hi,
That plugin cannot be used anymore since update 9.7, it has been replaced by a new plugin
– https://forum.tagdiv.com/developer-info/
You could use this plugin from now on. Or experiment with flex blocks, maybe what it used to be possible only with the api plugin, it is now possible with flex blocks and grids
– https://tagdiv.com/tagdiv-composer-flex-block-elements/
– https://tagdiv.com/tagdiv-composer-big-grid-flex-elements/
Thanks
Okay, got it – thanks!
One more question: how can I apply a custom css file within the plugin. It doesn’t work anymore with this description: https://forum.tagdiv.com/practical-example-how-to-add-a-new-block-and-module/
static function td_plugin_frontend_css() {
wp_enqueue_style('td-plugin-framework', plugins_url('', __FILE__) . '/css/style.css'); // frontend css (wp_enqueue_scripts)
}
Thanks!
EDIT:
Sorry, my bad. Didn’t transfer the add_action to enqueue the script…
-
This reply was modified 7 years by
nM.
Just to be sure: the old option with
td_api_module::update_key(ID, KEY, VALUE);
is no longer possible? I keep getting these errors:
wp_booster error:
td_api_base: A component with the ID: td_module_17 it's already registered in td_api_base
[...]/wp-content/themes/Newspaper/includes/wp_booster/td_api.php
Hi,
this is really unfortunate. I’ve helped myself with Flex Block 5, which almost gets the job done. Is there any way to include post view count and other elements into the post meta section? Or is the option for customization completely gone (I really don’t hope so)?
Thanks
Hi,
The view count can be set were you want in single post template get from tagDiv Cloud Library
-> https://www.screencast.com/t/9DANLHoTyZ
Thank you!