Im scrambling because soon i am getting employment that will require me to get it done in Wordpress, or add Wordpress functionality etc...and im an excellent noob in Wordpress....
To study,i copied all of the pertinent php files(header/footer/index/single/sidebar.php)etc, from some template, think this years theme, and things i did was,(apart from breaking it in order to learn lol) is i rewrote all old html right into a more workable way, split the html content in to the Wordpress php files above, and placed my html onto them, header content to header.php and so on. After which i moved round the Wordpress php hooks towards the areas i desired them in etc...easy peasy...
so for instance, if my HTML menu appeared as if this in plain html. NOTE: PSEUDO CODE COMING!
<nav id="mainNav"> opt1. opt2. opt3 </nav> etc...
i quickly did this
<nav id="mainNav"> <?php wp_nav_menu(); ?></nav>
etc..you get the drift...
now so far as the appearance and functionality, id say, im getting about 90% from it.
here starts the issue.
the web pages DO come in recption menus area where i designated it as being page links...however when you click it, even though it does visit another page (page.php), the page pops up with just the header and footer (i got the sidebar via css). all actual page content does not appear, as well as i check it with firebug also it does not pull it in whatsoever.
this is actually the wordpress php within the "page.php"
get_header(); ?> <div id="primary"> <div id="content" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <?php get_footer(); ?>
in directly above code, i saw that, this years version of the items i had been using, uses
<?php get_template_part( 'content', 'page' ); ?> along with "loop-page.php" because the template and so i transformed it to
<?php get_template_part( 'content', 'loop-page' ); ?>
but still nothing. page pops up only with header and footer.
any ideas. tips etc..please tell me. ive hit a wall which is the final part i have to understand this working.
thanks ahead of time.