Move Twitter Social Icon

Posted in: Newspaper
Post count: 1043

Hi. This is a minor feature request. Would you mind moving the social icon for Twitter just below Facebook in the theme panel>social networks? I have to keep moving it with every update and it makes more sense to have it there since in my chosen icons it appears at the end. Thanks.

Post count: 23312

Hello epickenyan,

Sorry but please notice that the list of Social Networks from Theme panel is sorted alphabetically by default and we will not change that order in the future, sorry!

Thanks for your understanding!

Post count: 1043

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;
Post count: 23312

Hello,

You should edit the td_data_source.php and change the seconds limit to your desired, like this -> https://www.screencast.com/t/apx82em61

Hope this helps!

Thanks.

Post count: 1043

I tried your suggestion but it did not work. That’s why I tried the other option above.

Post count: 23312

Hello epickenyan,

Sorry for this but please notice that feature has been designed to be used only for 7 Days.

Thanks for your understanding!

Post count: 1043

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.

Post count: 23312

Hello epickenyan,

Yes, the code should be correct because of the 30 days = 2 592 000 seconds. (maybe you can change your value which is 2 419 200 with the above one).

Thanks.

Post count: 1043

Thanks. Will do.

Viewing 9 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.