How to migrate .HTML pages to WordPress

For posts there even is an easy way to change this in the backend: Settings → Permalinks Codex: Permalink Settings The problem is that for pages this isn’t a built in feature. Here is another question that might give you a hint: Add .html (dot HTML) extension to custom post types The reasons why I … Read more

Prevent page from displaying

Use the date_query parameter in a query1. Make sure you query posts that are both the age you require and currently public. Set the post status to private2 with the wp_insert_post()3 function. Here’s an example from the codex which should give you an idea for how to query for posts older than a certain date:1 … Read more

custom page or standalone page?

As Andrew stated, a custom page/template would be the most efficient way to display the calculator. You can leave this as a simple page, displaying just your calculator, or you can add in “the loop” below the calculator to display additional text which would be easily edited in WordPress.

Content template when adding a new page

Use shortcodes with as many attributes as you want. add_shortcode(‘custom-display-of-data’, ‘custom_display_of_data’); function custom_display_of_data($atts) { $atts = shortcode_atts( array( ‘foo’ => false, // default foo is false ‘bar’ => ‘default bar’, // default bar is string: default bar // define defaults for as many attributes you need ), $atts, ‘custom-display-of-data’ ); // place your code here … Read more

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