WordPress custom pages in a folder

Something like this: In your child theme, create a directory to hold your template files as desired; e.g. a “custom_pages” directory, with the according 10 template php files holding the code for these 10 pages inside, like my_page_1.php, my_page_2.php, and so on. Also in your child theme folder; you setup ONE template file like my_custom_page.php; … Read more

How to hide a page in wordpress made for menu

Just create a custom template template-redirect-home.php and assign it to that page and redirect to homepage on load with sth like this: add_action( ‘template_redirect’, function(){ if(is_page_template(‘template-redirect-home.php’)){ wp_safe_redirect( get_home_url(), 301, ”); } }); You can also use Custom links in the menu to not access the page directly from the menu.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)