Trimek
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: admin-ajax.php taking up too much processing powerI have the same problem.
My website is cached, has like 5 plugins (Pagination, Total Cache, Events manager, WP Facebook Open Graph etc. nothing fancy) and even when i turned off the only AJAX thing i had (checking time with server) high CPU usage is still there. Comments on my website are turned off, there is no user registration etc.
I don
t know how to deal with it to be honest and I cant really do anything on website as 50 people use 35% of my shared hosting CPU limit.Thx for activity in this topic agelonwl. Sorry, {has_events} meant to be {has_location}.
I was trying to do this in widget settings (5 events, future, {has_location} for single output), but if it`s possible via template code or shortcodes it would be lovely.
I think I will make a small workaround with Category. I will make “Localization” category and query events from this Category. Should work like a charm.
As I said, I managed to find solution with {has_events}, but it requires bigger scope for small amount (5) events. I just wonder if this condition proceeds after query (like filtering results) or it`s and condition for general query to DB?
In my case I would have to query limit 100 events to {has_location} show 5 what makes no sense.
Yes, I did, but when I set limit to let’s say 5 and none of this 5 events will have location I will get empty list as {has_location} just hides events without location.
What I would like to achive is listing only next 5 events with location.
Forum: Fixing WordPress
In reply to: title in array with ID dependencyThanks very much, that was the issue, put get_the_ID in attribute and the_ID in html.
Forum: Fixing WordPress
In reply to: My own editable in-theme fieldsTried that one, managed to get posts, tag etc. but when I try to put post in correct place it
s always going to the content area instead of place it belongs, even when i dont gave blog/post query on such page.