ThemeForest WordPress reviewer gives a soft rejection for these reasons:
- Themes execute the presentation and styling of content while plugins handle content creation and functionality. Anything users will lose upon switching themes is classified as plugin territory. Here are some common examples:
- SEO options
- Non-design related meta boxes
- Resource caching
- Dashboard widgets
- Custom Post Types
- Custom Taxonomies
- Social media “like”, “follow” and “share” buttons
Anything that falls into plugin territory must be added via a custom plugin.
You may use TGM Plugin Activation or equivalent to prompt the user to install the plugin on theme activation, but it cannot be activated without user action.
example(s) : https://envato.d.pr/1qSpN7
–> For this point I have to remove social sharing code in theme file and added it to in my theme core plugin file but we have to use a Redux Framework and add sharing on/off options and social sharing style options in theme options.php file that create all Theme options by using Redux Framework and we have added options.php file in theme folder as Redux Framework Plugin guideline.
PS: We have not added Redux Framework Plugin Code in the theme folder, For this, we have used this code in our core plugin file.
- wp_reset_query - if you’re not using query_posts(), then you really shouldn’t be messing with the main $wp_query variable, as wp_reset_query() does.
query_posts() will change your main query and is not recommended. Only use if absolutely necessary
Try wp_reset_postdata() instead.
Thanks in advanced