hard coded htmlphp pages on local host directory don't show up in WP dashboard

admin2025-06-02  3

My hard coded html static file I converted to php pages on my localhost directory don't show up in WP dashboard.

I'm re-purposing a static HTML site to WP. My files don't show up in the dashboard.

I believe I had the database setup correct in myPHP-admin, not sure what the issues is

My hard coded html static file I converted to php pages on my localhost directory don't show up in WP dashboard.

I'm re-purposing a static HTML site to WP. My files don't show up in the dashboard.

I believe I had the database setup correct in myPHP-admin, not sure what the issues is

Share Improve this question asked Mar 18, 2019 at 17:10 user2994441user2994441 1 1
  • 1 WP do not show hard coded static html/php by default. you need to elaborate how do you want your html fie to show. – Qaisar Feroz Commented Mar 18, 2019 at 17:17
Add a comment  | 

1 Answer 1

Reset to default 2

That's not how WordPress works. The WordPress content is pulled dynamically from the database and uses templates to create an outline of what the website should look like.

header.php which would contain the top part of your website.

footer.php which would contain the bottom part of your website.

page.php which would hold the page content of your website. The content of which is held in the database and served using The Loop:

if( have_posts() ) {

    while( have_posts() ) {

        the_post();
        the_title( '<h1>', '</h1>' );
        the_content();

    }

}

You need to create pages in WordPress ( either programatically or manually ) and populate the content. Another method is to create Page Template and assign unique layouts to specific pages.

I would suggest looking at already build themes to get a better understanding of how they layout and pull their content such: Twenty XYZ Themes by WordPress. Additionally there's the Theme Development guide in The Handbook which is well worth a read.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748795333a313782.html

最新回复(0)