My question was simple. If you could confirm whether the code I shared above is correct for filtering by 30 days. I have seen it is filtering, but not sure if by 30 days or not.
I tried your suggestion but it did not work. That’s why I tried the other option above.
Okay. I will just be uploading the individual files updated manually with each theme update. To another unrelated question, I came up with (from some tutorials here) and tried this code to filter popular posts in the last thirty days. I know you don’t provide custom work, but would you kindly advise if the code is correct?
case 'popular_of_latest': $wp_query_args['meta_key'] = td_page_views::$post_view_counter_key; $wp_query_args['orderby'] = 'meta_value_num'; $wp_query_args['order'] = 'DESC'; $wp_query_args['date_query'] = array(
'key' => td_page_views::$post_view_counter_7_day_last_date,
'value' => (date('U') - 2419200), // current date minus 30 days
'type' => 'numeric',
'compare' => '>'
);
break;
Do not use this setting in Seo by Yoast:
https://www.screencast.com/t/n8Cc35EofLh
Also, if you are using the WP Super Cache plugin, please ensure it is set up according to tagdiv documentation here -> https://forum.tagdiv.com/cache-plugin-install-and-configure/ (this needs to be updated)
Also, do not edit a page which was created with Visual Composer with TD Composer.
@Simion. Thanks for the tip. I have been doing it the hard way all this time. Thanks.
I could give you a hint of what I do with my site. You create a staging site on a subdomain (or a new folder inside public_html) and then install WordPress and newspaper. Then import the demo you want with the content.Then copy the shortcodes inside the homepage of the test site and create a new page on my original site and paste the shortcodes there. I then try to modify the look using td composer to match my site look. Maybe you should try it. But you should test thoroughly coz some of the elements may or may not work. (I don’t work here)
You are welcome.
Check under Appearance>Customize>Widgets and select the sidebar option. You should be able to remove that widget from there.
Try to regenerate them using this plugin https://wordpress.org/plugins/force-regenerate-thumbnails/
Or use this code in your functions.php to show the author ID in the WordPress>Users section so you don’t have to keep hovering.
// Show WordPress user ID in dashboard
function rd_user_id_column( $columns ) {
$columns['user_id'] = 'ID';
return $columns;
}
add_filter('manage_users_columns', 'rd_user_id_column');
/*
* Column content
*/
function rd_user_id_column_content($value, $column_name, $user_id) {
if ( 'user_id' == $column_name )
return $user_id;
return $value;
}
add_action('manage_users_custom_column', 'rd_user_id_column_content', 10, 3);
/*
* Column style (you can skip this if you want)
*/
function rd_user_id_column_style(){
echo '<style>.column-user_id{width: 5%}</style>';
}
add_action('admin_head-users.php', 'rd_user_id_column_style');
Check this guide on mobile theme https://forum.tagdiv.com/the-mobile-theme/. Plus, you won’t see the background for mobile if you use the mobile plugin.
The top grid will only display posts that are included in the Featured category, so make sure you have added posts to it.
You are welcome.
That would indeed be a nice idea. Thanks. I don’t use the multipurpose plugin in an attempt to cut down on the number of plugins I use on my site for speed.
Go to Newspaper>theme panel>translations>translations and search for the term “leave a reply” and replace it from there.
You are welcome.
Thanks. I asked about the td file because I saw some people had asked before how to make the block headings h2. I tested it but it enlarged the font for the mega menu.
Try installing this way https://forum.tagdiv.com/install-via-ftp/ and also make sure your host meets the required theme parameters https://forum.tagdiv.com/requirements-for-newspaper/. Also, notice that tagdiv recommends maximum PHP 7.2 version for better results.
That’s the top bar. You can disable it in theme panel>header>top bar if you don’t use it or change its colour in theme panel>theme colours>top menu>background color to #fff (white) if you use it (to display top menu for example).
3. Can the td_module.php file be edited in a child theme?
Another question, does the plugin cache the mobile site or does it bypass it? I made some changes to the footer and I saw them reflect in the mobile site without clearing cache and this made me wonder if the mobile theme is cached.
You can only stretch pages (built with the tagdiv composer) but not posts. Just open a page with tagdiv composer and then click on a block or an empty row (that you can add if it is a new page you’re creating). Where you see row>column on the left (like this https://prnt.sc/j8pytg for example) click on the ‘row’ option. Then scroll down until you see “row stretch” and select your preferred setting from there.
Thanks, I just removed the images and all is fine now.