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

pre-existing data, and entities

Well the question is do you want to leverage WordPress or do you want to use your custom data. You can build fairly complex things in WordPress even with a plugin like Advanced Custom Fields, make a bunch of custom post types that all have different custom fields(some of which can be other post objects, … Read more

Use content from one page in another template

Assuming you have the following pages: Home About us that has a slug of about-us And you want to display the content of the About us page into the Home page. <?php $about_us = get_page_by_path(‘about-us’); // supply the page slug; i.e. about-us $about_us_content = get_the_content($about_us->ID); ?> <div><?php echo $about_us_content ; ?></div> Alternatively, you can use … Read more