Help With Custome Page Template Using _wp_page_template (2 posts)

  1. anthakkar08
    Posted 4 years ago #

    Hello What if I Modify the _wp_page_template File directly to Load appropriate Page Template From The DB like i have a Page test/test.php
    so i can do some thing like _wp_page_template TO test/test.php this works Fine so it helps me to restrict user From Creating Other Page With same Page template But I want to know more is there any issue with this approach and about the Compatibility of This HACK with Future WP Release

    or is there any other way by which i can Separate my Custom Page template in a Batter Folder Structure like Module Wise

  2. pedrogas_g
    Posted 4 years ago #

    It's maybe only me but I believe there's a better way to do that, try 'remove_meta_box', you can play with roles by example you remove the pageparentdiv if the user is not an administrator

Topic Closed

This topic has been closed to new replies.

About this Topic