Skip to content

Tag: wordpress

WordPress custom endpoint – rest_invalid_handler

I am completely new with PHP and WordPress, however I start to write my first plugin that should be able to expose a custom endpoint. I managed to register and activate the plugin and the route, but when I am trying to access this endpoint I am getting the following error: If I access the: http://localhost/my…

How can i fetch numbered URLs that contain zero in PHP?

i’ve a problem concerning a PHP function for a WordPress site. As of this article https://perishablepress.com/wordpress-infinite-duplicate-content/ WordPress has a problem for infinite pagination. So i need to fix this by catching numbered URLs and redirecting them to its parent URL. I found this code o…