trader121
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Search Posts only in v4.7I 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
In reply to: Search Posts only in v4.7Hi 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
In reply to: [Rotating Tweets (Twitter widget and shortcode)] Love this plugin but!Thanks for your help Martin, all the best.
James.
Forum: Fixing WordPress
In reply to: Posts in Subcategories OnlyNo, 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
In reply to: Posts in Subcategories OnlyHere you go: https://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
In reply to: [WP Fastest Cache] Database CachingSorry, didnt mean to post this one.
- This reply was modified 8 years, 6 months ago by trader121.
Forum: Plugins
In reply to: [WP Fastest Cache] Database CachingOh I see, so not necessary then. Thanks Emre.
Thanks Hector.
I’m surmising that no one has an answer for this then ??
Forum: Plugins
In reply to: [WordPress Popular Posts] Shortcode ProblemsThanks Hector, I’m in no immediate hurry. Please give me a shout when you have some time.
James.
Forum: Plugins
In reply to: [WordPress Popular Posts] Shortcode ProblemsThanks 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: [email protected] and give me a quote please? I have some other bits I would like sorted as well
Many Thanks,
James.
Forum: Plugins
In reply to: [WordPress Popular Posts] Shortcode ProblemsHi 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: https://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
In reply to: [WP Fastest Cache] Can I exclude a plugin from being cached?Sure, here is the link: https://wp-livechat.com/
Forum: Plugins
In reply to: [Affiliates] Updating the Affiliates core FAILED.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
In reply to: [Affiliates] Updating the Affiliates core FAILED.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.