Need to create a custom page on a website

First, if you want to build a custom page, the best place to look is the themes folder. If your working on a custom made theme, you can add templates to the theme folder, and use them in your site. Otherwise, it’s better to create a child theme for your customization (Childthemes). Within that new … Read more

Page appears after de registering from menu

This is controlled by the wp_nav_menu argument fallback_cb, which is the wp_page_menu function by default. Set it to false to show nothing in the case a menu isn’t assigned. wp_nav_menu( array( ‘theme_location’ => ‘footer-menu’, ‘menu_class’ => ‘footer-links-menu’, ‘fallback_cb’ => false, ) );

Weebly Migration to WordPress [closed]

Weekly, like wix and other drag-drop website development app, REALLY prevents migration to WordPress. I usually come across with clients with similar requests but we end manually setting up a WordPress and just use the weebly/wix design as basis. So to answer your question, no sorry, there’s no way.

Remove_filter (‘the_content’, ‘wpautop’) only pages

the_content filter apply to all posts which means pages and articles. What you can do is to add condition to its execution. First you remove filter as you did remove_filter(‘the_content’, ‘wpautop’); then you add another filter that will call the wpautop function depending on a test like this : function my_the_content_filter($content) { if(/* you test … Read more

Is there a way to schedule changes to a page?

you can do this with a shortcode like this add_shortcode(“custom_text_se282078”, function ($attr, $content, $tag) { $result = “”; if (date_i18n(“H”) > $attr[“time”]) { $result = $attr[“text_after”]; } else { $result = $attr[“text_before”]; } return $result; }); with that you just have to put that in the page : [custom_text_se282078 time=”10″ text_before=”text before 10 h” text_after=”texte … Read more

Prevent non-admin to add/create new pages

You can remove the capability using remove_cap, here you can see a list per role of all capabilities available, the one you want would be edit_pages, so this will work for the editor rol, which has that capability: $role = get_role( ‘editor’ ); $role->remove_cap( ‘edit_pages’ ); you may want publish_pages, edit_posts,publish_posts too, check the table … Read more