Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
asce_admin
tagDiv Member

“The only solution, in this case, would be to edit the popular7, just replace in the code the “604800” seconds for seven days with the “2592000” for 30 days.
The file that need to be edited is on this path -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_data_source.php -> https://i.imgur.com/VXFW5ec.png
In order to change the text from drop-down chooser you need to edit the wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php
-> https://i.imgur.com/rYb8fOW.png”

To be more specific, we are referring to this comment.

Can we able to clone this file -> wp-content/plugins/td-composer/legacy/common/wp_booster/td_data_source.php and wp-content/plugins/td-composer/legacy/Newspaper/includes/td_config.php into our child theme or a custom plugin and make changes there rather than doing it in the actual plugin file? so that whenever you guys push some updates, we don’t loose our changes.

If so, can you say how we can do it?

Thanks!

asce_admin
tagDiv Member

Thank you! This was very helpful. We’ve created a child-theme based off of Newspaper so that we can make adjustments to the templates when needed. Is this a change we can make to the child-theme or will we have to edit files from the actual Newspaper template?

thanks!

asce_admin
tagDiv Member

Hello Calin,

I don’t think you understand our question. Let me elaborate the issue. We created two custom taxonomies name Month & Department. Month has few terms (August, September, October) & Department has few terms (A, B, C). Now we are trying to filer the content related to term A(it’s id is 20) and term September (it’s id is 38) and they were added in the filter like this https://imgur.com/LPNaFYp. The result we are getting out of that filter is inaccurate. The output we are expecting is that it displays the posts from September which belongs to Department A.

We are not using those custom taxonomies with any custom post types, we are using them with Posts.

Hope you understand the issue now and provide a solution for this.

Thank you

asce_admin
tagDiv Member

Hello Calin,

I also wanted to add a shortcode using td composer. I followed what you mentioned above. I don’t see column text element. I just see Text with Title (https://imgur.com/kc7RZHC). I tried adding Text with Title (https://imgur.com/DyRpyUl) & when I select Edit Content, editor doesn’t do anything it keeps spinning like this.

Any kind of help is much appreciated.

Thank you

asce_admin
tagDiv Member

We are a team of developers.

class custom_plugin
{
var $plugin_url = '';
var $plugin_path = '';

function __construct()
{
$this->plugin_url = plugins_url('', __FILE__);
$this->plugin_path = dirname(__FILE__);
add_action('td_global_after', array($this, 'hook_td_global_after'));
add_action('admin_enqueue_scripts', array('td_api_plugin', 'td_plugin_wpadmin_css'));
add_action('wp_enqueue_scripts', array('td_api_plugin', 'td_plugin_frontend_css'));
}

static function td_plugin_wpadmin_css()
{
wp_enqueue_style('td-plugin-framework', plugins_url('', __FILE__) . '/wp-admin/style.css'); // backend css (admin_enqueue_scripts)
}

static function td_plugin_frontend_css()
{
wp_enqueue_style('td-plugin-framework', plugins_url('', __FILE__) . '/css/style.css'); // frontend css (wp_enqueue_scripts)
}

function hook_td_global_after()
{
td_api_single_template::delete('single_template_1');
td_api_single_template::delete('single_template_2');
td_api_single_template::delete('single_template_3');
td_api_single_template::delete('single_template_4');
}
}

new custom_plugin();

We are trying to use td_api_single_template::delete() api to delete bunch of unnecessary templates from the site. But it’s not doing anything.

Can you please help us with that?

Thanks

asce_admin
tagDiv Member

Thanks for the response. To be clear, we were using multiple custom taxonomies when adding those term IDs. We were able to get an appropriate filtered list if we use those terms IDs individually. However, when we try to add them together, it doesn’t seem to work.

asce_admin
tagDiv Member

I am also trying to make use of theme API’s from the documentation. None of those API’s seems to work for me. Can you help me with that as well?

Thanks,

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