kuckovic
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: WordPress Site High CPU Usage (Help)Hi @juanwp22
Well – it might be one of 2 possible problems.
Do you have WP Rocket installed? If so, it might be the issue, since they’ve had som problems with the plugin exhausting the CPU (huge talk in their Facebook group about this) – here’s a link, where they provide some troubleshooting on this. I think this has been patched though – but if you’re running an older version, the issue might still be there.The other thing – which I personally think is causing the issue, is Cloudways.
I don’t have anything against them personally – I’ve never used them TBH – but I’ve read SO MANY posts on CPU issues with Cloudways. Here’s a thread on the exact same issue as you’re experiencing. Again, I’m not familiar with Cloudways myself – but I’m active in a lot of WordPress groups on Facebook – and they’ve been bashed quite a lot by people experiencing issues with high CPU usage.Hope this clears it a bit.
Best regards
ArisForum: Developing with WordPress
In reply to: List of users who have a made a post in a cptGlad it’s working 🙂
Good luck with the project.
/AForum: Fixing WordPress
In reply to: Can’t get into Customize + Weird color gradientYes, that clarifies it a lot.
Looks like you’ve exhausted all memory on your hosting plan.
You can do something yourself – please have a look at this article – but if your not familiar with coding – or just don’t feel safe about editing files yourself, please reach out to your hostingprovider, and let them know what the error is.
You can actually just copy/paste the error message in the support-ticket – and they can tell you what options you have. Most often, this error occurs if you’re using a cheap hostingprovider – or maybe the hosting-package is “too small”, and you’ll need to upgrade in order to avoid this error again.
From what I can see, you should reach out to Mijndomein.nl(?)
I hope they can help you with the error – it’s an annoying one.
/AForum: Fixing WordPress
In reply to: Can’t get into Customize + Weird color gradient@robbiemendez
I would assume it’s in the controlpanel wherever you’re hosting your website.
Alternatively you can have a look at the WP Debugging plugin – when you install and activate the plugin, you should be able to see a more detailed error when navigationg to the “Customize” page.Forum: Developing with WordPress
In reply to: List of users who have a made a post in a cptHi @candell
I would start by creating a function, that retrieves all the users, who has a published post within your custom post type. Now, I don’t know what your CPT is called, so I’ve filled it out with “YOUR_CPT” in the code below:
function get_users_with_published_posts() {
$args = array(
'post_type' => 'YOUR_CPT',
'post_status' => 'publish', // Only get the posts with "published" status
'numberposts' => -1,
);
$posts = get_posts($args);
$users_with_published_posts = array();
foreach ($posts as $post) {
$user_id = $post->post_author;
$user = get_userdata($user_id);
if (in_array('authority', $user->roles)) { // I assume "authority" is your userrole
$users_with_published_posts[$user_id] = $user->display_name;
}
}
return $users_with_published_posts;
}Please make sure the function name is unique – I’ve just added something for the sake of providing some code. Now, in order to show the authors, you can use the function above like this:
$users = get_users_with_published_posts();
foreach ($users as $user_id => $display_name) {
echo $display_name . '<br>';
}The code above only gives you an user-id and “display_name” – if you need any other info, you should put it in the “$users_with_published_posts”-array. I haven’t tested the code above – it’s just “on the fly” – so naming is also a bit fluffy. Please adjust for your needs.
Best regards
ArisForum: Fixing WordPress
In reply to: Can’t get into Customize + Weird color gradientDo you have any error-logs yuo can access? It might be in the host controlpanel.
The error on the customize page is caused by something – and first step might be to fix that – and hopefully you can recover your old colors.Forum: Fixing WordPress
In reply to: Change internal link URL structureAh I see – then i’m not sure how you should approach this.
I can only think of “Search and replace” – but that requires you knowing the exact URL match (or at least parts of it). I would highly recommend testing this on a local or staging-environment.
Manually, it might take some time, yes 😛Forum: Fixing WordPress
In reply to: Change internal link URL structureHi @ungowp
Are your old (internal) links working? Do they redirect to the correct page?
I’ve always discouraged my clients from changing permalink structure on a live site – as it can affect your SEO.
You can read more on this topic here.
They also recommend 301-redirects before changing the permalink structure./A
Forum: Fixing WordPress
In reply to: How can I change this?I strongly agree with @threadi here.
Never make changes in the core-files.Forum: Fixing WordPress
In reply to: Site/block Editor layout is no longer working correcting from 6.6Good thing you found out! 😀
Thanks for sharing 🙂Forum: Fixing WordPress
In reply to: Site/block Editor layout is no longer working correcting from 6.6Okay – doesn’t make sense then.
Although, I run 3.5.0 (alpha) – but I don’t use Elementor tho – have you tried disabling Elementor for a second? Just to see if it fixes your editor?Forum: Fixing WordPress
In reply to: I manage the website [removed]Hi @tahura1234
Can you please elaborate a bit more on “Not displaying correctly”?
Maybe a screenshot with some description of the issue?
/AForum: Fixing WordPress
In reply to: Site/block Editor layout is no longer working correcting from 6.6What’s your theme version? And GenerateBlocks too?
Forum: Fixing WordPress
In reply to: Site/block Editor layout is no longer working correcting from 6.6Hi @andygilbertcodel
I also use GeneratePress – but no issues here?
Do you have any errors in the console?Forum: Fixing WordPress
In reply to: How can I change this?This is a longshot – but it has worked before.
You can use a plugin like “LocoTranslate” – and using the “String translation” function in the plugin, you should be able to search for the word “on” – and then you can replace it with an empty string (or a dash, or whatever you need).
/ AK