Create a custom php page and load it at a specific slug

I have this painful problem with a client. They need to load a feed from a remote endpoint into a page that fits their WordPress template design.. They also want to display the page at a particular URL

for example

myclient.com/we-want-it-here

I created the page that loads the feed and I am able to include header and footer,,

<?php
define(‘WP_USE_THEMES’, false);
require(‘path/to/my-wordpress-dir/wp-blog-header.php’);
get_header();
?>
//Contents of the body of your XHTML page go here
<?php get_footer(); ?>

BUT I don’t know how to make the page a part of the WordPress URL schema?? Is there a way to accomplish this?

Also,, this page also displays “Page not found” in the title, for obvious reasons,, How can I override meta tags on such custom page that needs to live this awkwardly in the WordPress ecosystem.

Any suggestions in the right direction would be very very helpful!

Read more here:: Create a custom php page and load it at a specific slug

Leave a Reply

Your email address will not be published. Required fields are marked *