Title: trader121's Replies | WordPress.org

---

# trader121

  [  ](https://wordpress.org/support/users/trader121/)

 *   [Profile](https://wordpress.org/support/users/trader121/)
 *   [Topics Started](https://wordpress.org/support/users/trader121/topics/)
 *   [Replies Created](https://wordpress.org/support/users/trader121/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/trader121/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/trader121/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/trader121/engagements/)
 *   [Favorites](https://wordpress.org/support/users/trader121/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search Posts only in v4.7](https://wordpress.org/support/topic/search-posts-only-in-v4-7-2/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/search-posts-only-in-v4-7-2/#post-8540403)
 * I had to search around a bit but I finally found the Answer.
 * All I had to do was add the following code snippet to my theme’s functions.php
   file.
 * ————————————————-
    function mySearchFilter($query) { if ($query->is_search) {
   $query->set(‘post_type’, ‘post’); }; return $query; };
 * add_filter(‘pre_get_posts’,’mySearchFilter’);
    ————————————————–
 * Once I added the code my search now only searched on posts, and it shouldnt get
   overwritten in the next WP update. Sorted 🙂
 * James.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search Posts only in v4.7](https://wordpress.org/support/topic/search-posts-only-in-v4-7-2/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/search-posts-only-in-v4-7-2/#post-8540367)
 * Hi Liam, thanks for your reply.
 * Your right, the query.php does get overwritten when WP is updated, and it happened
   on the last update. But all I had to do then was quickly bring up query.php, 
   make the change and the search was back to serching on the posts only.
 * But in this latest 4.7 update the query.php looks completely different and the
   code oulined above is not present anymore.
 * I am not a develper either. I had a quick look at my theme’s functions.php file
   but I didnt see anything obvoius related to search that I can edit. I guess I
   will have to keep searching for an answer.
 * Thank you for your help.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Rotating Tweets (Twitter widget and shortcode)] Love this plugin but!](https://wordpress.org/support/topic/love-this-plugin-but-2/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/love-this-plugin-but-2/#post-8385108)
 * Thanks for your help Martin, all the best.
 * James.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Posts in Subcategories Only](https://wordpress.org/support/topic/posts-in-subcategories-only/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/posts-in-subcategories-only/#post-8154156)
 * No, there are others. Some in sub categories and others in sub sub categories.
   Its weird. I did have a plugin “Remove Category URL” that I was using but after
   deactivating this and clearing the cache it is still the same. I will raise a
   ticket as you have suggested and see what can be done.
 * Thanks for the help Davood, its much appreciated.
 * James.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Posts in Subcategories Only](https://wordpress.org/support/topic/posts-in-subcategories-only/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/posts-in-subcategories-only/#post-8150017)
 * Here you go: [http://imgur.com/a/rvLSs](http://imgur.com/a/rvLSs)
 * See how the “Audio Rippers & Converters” sub cat is under “Audio and MP3 Software”
   cat? Well if I choose to have a post listed in the sub category, it also displays
   in the main category above. I’m hoping I am doing something wrong.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Fastest Cache - WordPress Cache Plugin] Database Caching](https://wordpress.org/support/topic/database-caching-2/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/database-caching-2/#post-8150009)
 * Sorry, didnt mean to post this one.
    -  This reply was modified 9 years, 9 months ago by [trader121](https://wordpress.org/support/users/trader121/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Fastest Cache - WordPress Cache Plugin] Database Caching](https://wordpress.org/support/topic/database-caching-2/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/database-caching-2/#post-8149983)
 * Oh I see, so not necessary then. Thanks Emre.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] How to prevent the number of post views from being abused?](https://wordpress.org/support/topic/how-to-prevent-the-number-of-post-views-from-being-abused/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/how-to-prevent-the-number-of-post-views-from-being-abused/#post-7357943)
 * Thanks Hector.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] How to prevent the number of post views from being abused?](https://wordpress.org/support/topic/how-to-prevent-the-number-of-post-views-from-being-abused/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/how-to-prevent-the-number-of-post-views-from-being-abused/#post-7357941)
 * I’m surmising that no one has an answer for this then 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Shortcode Problems](https://wordpress.org/support/topic/shortcode-problems-5/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shortcode-problems-5/#post-7288284)
 * Thanks Hector, I’m in no immediate hurry. Please give me a shout when you have
   some time.
 * James.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Shortcode Problems](https://wordpress.org/support/topic/shortcode-problems-5/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shortcode-problems-5/#post-7288250)
 * Thanks for all your help Hector, It looks better but try as I might, I cant get
   the summery to appear. I’m also not sure how to get the spacing right.
 * I’m wondering if in my case, it might be better to have the php hard coded for
   this as I would also like to display a list of between 60-100 posts at 20 posts
   per page and that would require paging. If this is something you could do for
   me, can you email me directly at: [admin@trade-host.com](https://wordpress.org/support/users/trader121/replies/admin@trade-host.com?output_format=md)
   and give me a quote please? I have some other bits I would like sorted as well
 * Many Thanks,
 * James.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Popular Posts] Shortcode Problems](https://wordpress.org/support/topic/shortcode-problems-5/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/shortcode-problems-5/#post-7288232)
 * Hi Hector, thanks for getting back to me so quickly.
 * This is what I have at the moment, but its not showing the excerpt.
 * [wpp range=all stats_views=1 limit=30 post_type=post thumbnail_width=40 thumbnail_height
   =40 excerpt_length=100]
 * I have the website setup on a temperary domain. Here is a link to the page where
   the list will be showing: [http://www.webbsdirectory.co.uk/most-popular-apps/](http://www.webbsdirectory.co.uk/most-popular-apps/)
 * If you look to the right of the page you will see your plugin displaying “The
   Top 10 Most Popular Apps” by number of views and it looks good. I would like 
   to show the top 50 on a page in the same style as the widget but with the excerpt
   included as well.
 * It would be also great if it had some paging feature that would allow me to show
   20 at a time but I’m not sure if I can do that with your plugin. I need to get
   the spacing right also so that the list looks the same as in the widget.
 * If you click on any menu item under “windows Software”, you will see the kind
   of look I’m trying to achieve.
 * Any help you can give will be most appreciated.
 * James.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Fastest Cache - WordPress Cache Plugin] Can I exclude a plugin from being cached?](https://wordpress.org/support/topic/can-i-exclude-a-plugin-from-being-cached/)
 *  Thread Starter [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/can-i-exclude-a-plugin-from-being-cached/#post-6443316)
 * Sure, here is the link: [http://wp-livechat.com/](http://wp-livechat.com/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Affiliates] Updating the Affiliates core FAILED.](https://wordpress.org/support/topic/updating-the-affiliates-core-failed/)
 *  [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/updating-the-affiliates-core-failed/page/2/#post-6380375)
 * Sorry itthinx, I am using the free version and seriously thinking of buying the
   Pro version, it has a lot of features that I will need, but I need to sort this
   problem first because if I cant there is no point in buying it.
 * I’m getting the error “Updating the Affiliates core FAILED.”
 * I have run debug and getting this error message: WordPress database error Duplicate
   column name ‘campaign_id’
 * So how do I fix it?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Affiliates] Updating the Affiliates core FAILED.](https://wordpress.org/support/topic/updating-the-affiliates-core-failed/)
 *  [trader121](https://wordpress.org/support/users/trader121/)
 * (@trader121)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/updating-the-affiliates-core-failed/#post-6380363)
 * itthinx! I really don’t understand this. I have been trying to update affiliates
   Pro and I get: Updating the Affiliates core FAILED.
 * I have enabled debug and its outputting the following: WordPress database error
   Duplicate column name ‘campaign_id’
 * Why? when updating is it trying to create a column that is already there?
 * I have updated lots of times with different plugins but I have never experienced
   this before, surely the update would include code to deal with this type of problem.
   Is this what I am going to get every time I try to apply an update?
 * We need a proper solution to this problem without having to delete all the data
   and install again.
 * James.

Viewing 15 replies - 1 through 15 (of 15 total)