Normally, my-custom-page/
would be rewritten to index.php?page_id=2
(or whatever the ID of that particular page is). Your rewrite is omitting the page_id
var, which is why you’re getting the blog index instead of your page.
Related Posts:
- How can I have two different urls for the same page that load two different templates?
- More than one text-domain is being used because of the included templates for plugins
- (FES EDD) New vendor submission page is blank
- Plugin-generated pages use Not Found or Pages Archive templates?
- Advanced Custom Field DatePicker [closed]
- Why namespaces are rarely used in WordPress plugins?
- Is there any hook for theme activation ? or something similar?
- How to use get_template part in the plugin?
- use EDD Content Restriction for restricting php in template
- how to display a template.php in a shortcode
- Mobile Menu and Mobile Sidebar missing
- How to prevent redoing get_posts queries and make results available to other scripts?
- WP Customer Reviews call short code on another page [closed]
- Divi Template A Few Questions
- My Blog page ( posts page ) theme isn’t changing with the new theme [closed]
- How to add links to different language versions of WordPress
- Tips for using WordPress as a CMS? [closed]
- What Are Security Best Practices for WordPress Plugins and Themes? [closed]
- Pass PHP variable to javascript
- How to get the active theme’s slug?
- Plugin (or Theme) containing its own Plugins?
- Disable author pages for specific users
- Set active theme via URL
- Template plugin for blog posts? [closed]
- Migrating a File from Plugin to Theme and changing its path → instead create a REST endpoint
- Why users disable the WordPress update?
- dequeue not work
- How do I make a wordpress plugin with menu item etc
- taxonomy_template filter do not loads custom taxonomy template properly
- Translating plugin inside the theme [closed]
- WordPress redirect all 404 pages to the Homepage
- Woocommerce sidebar not loading in theme
- WP-Markdown treating java generics like HTML tags
- Unable to install theme recommended plugins on Multisite
- How to prevent users to download videos from lms website?
- Different UI in WordPress
- WP Post Template – Templates in own folder
- Hooking in to replace the Sidebar/Widget areas
- Child Pages Short Code plug-in and hover capabilities?
- Linux Permissions and Ownership for WordPress
- Render custom php template into string
- Where are theme codes located for WordPress?
- Best practice for including plugin output in a template without using shortcode?
- Basic gallery plugin suggestion [closed]
- using do_shortcode
- How to load different homepage on Mobile.?
- How to get menu location in wp_update_nav_menu hook
- Default taxonomy template in plugin, override in theme
- Which wordpress theme is compatible Optima Express theme (real estate inventory) plugin?
- How to Include File from Plugins into Template?
- How to execute plugin and theme updates from a web hook / endpoint?
- How to translate WP Blog (search, category etc.)?
- How do I set up XAMPP to allow me to download plugins and themes?
- Licensing options for WordPress Plugins
- Pagination shows Same posts
- Extending a theme: build new features as plugin or core modules?
- Is there a Image Gallery which will load all my posted Images like twitter’s image grid?
- Switching Code plugins
- What is the most efficient way of adding additional functionaliy for admin only
- How do I work with the SlideDeck plug-in?
- “User need to be logged in in order to make a booking” issue
- Custom Plugin scripts from admin working in frontend
- Pass PHP variable to javascript
- Scrape key check failed. Please try again
- Disable WordPress Theme Browser and Plugin Browser
- Sold out Label for variable products which are partially sold out
- Create automatic latest version link
- How to Access a file that is inside a plugin’s dir from the theme’s `functions.php` file
- dokan edit functionality
- how to split and upload a theme on wordpress?
- How to add post title to custom php?
- Removing Plugin Action via Theme for Non-admins
- Genesis Child Theme – Customize body
- Different Google Analytics code based on Users Device
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- How to change the deafult template in WordPress plugin
- how to add navigation icons in specific template?
- How to make a website with two types of logins , Sellers and buyers?
- Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder
- Why all my wordpress sites keeps telling me that everything is up to date at /wp-admin/update-core.php?
- How can I save cookies to members
- How to add separator between default and custom panels in WordPress customizer?
- Speed issues because of CSS & JavaScript
- How can I easily add code under the tag without using hooks? [duplicate]
- Ajax specific template not loading in replacement of index.php
- Woocommerce: deleted single-product.php, everything still works. How is it possible?
- Embedding code snippets in posts with indentation
- pluggable function in theme, to be overridden by plugin
- How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?
- Live coding in WordPress
- show Visual form builder in the front end
- Fake Single WordPress Post (Page) Loop
- Why do I get this “peer’s certificate issuer not recognised” error when trying to install a theme?
- how to change location of the plugins & wordpress themes folder
- Make a Custom template for a specific category in wordpress
- Extra Text in Home URL
- Self-hosted Plugins & Themes store with auto-updates? [closed]
- Any plugin/theme available which suits my requirement? [closed]
- Two sites one PC
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]