Logo
  • Home

September, 2023

Restrict access to the WordPress REST API posts endpoint with basic auth
Restrict access to the WordPress REST API posts endpoint with basic auth

We wanted to stop this leaking all our posts but also allow it for certain purposes with a username and password. Some solutions are very heavy-handed and can cause issues with plugins etc if you simply disable it all! With this method you can just lock down certain endpoints that you are worried about. This... » read more

0
Read
ralpharama written 2 years ago
Exclude WordPress custom taxonomy items from a list when they have no associated custom posts
Exclude WordPress custom taxonomy items from a list when they have no associated custom posts

Quite specific this but it was hard to work out, with ChatGPT and GitHub CoPilot failing to come up with a solution. We have a custom_post type ‘case_study‘, and a taxonomy, ‘category‘ (which is also used by other post types) and we wanted to display a dropdown list of the taxonomy items only if there... » read more

0
Read
ralpharama written 2 years ago

Tiresome legal obligation privacy policy

https://www.buymeacoffee.com/ralpharama: Exclude WordPress custom taxonomy items from a list when they have no associated custom posts
Copyright © 2025 Ralpharama Geek Blog. All rights reserved. Theme by Mynote.