charlesharman
Member
Posted 7 months ago #
Does anyone know how to or coud help me produce a formatted page around this PHP code. I do not know PHP or CSS although they are next on my reading list. I created the page but it looks terrible absolutely no formatting can I get this into my dynablue wordpress theme?
http://www.webdesignlessons.com/dynablue-wordpress-theme/
I have programming experience going back to the late 1990s.
[code moderated - please follow the forum guidelines for posting code]
for instance, look at the code of page.php of your theme, and use the same html structure - also add the code for 'get_header()' and 'get_sidebar()' and 'get_footer()' into the same locations.
programming experience is like riding a bicycle - once you've got it, you never loose it.
charlesharman
Member
Posted 7 months ago #
Thanks I will look into that.
charlesharman
Member
Posted 7 months ago #
Here is a link to the new All Posts listing
http://retiringphilippines.org/about/posts-directory/
And here is the actual code after modification.
<?php
/*
Template Name: All posts
*/
?>
<?php get_header(); ?>
<?php
$debut = 0; //The first article to be displayed
?>
<?php while(have_posts()) : the_post(); ?>
<h2><FONT COLOR="darkgreen"><?php the_title(); ?></FONT>
</h2>
<FONT COLOR="brown"><h4>
<?php
$myposts = get_posts('numberposts=-1&offset=$debut');
foreach($myposts as $post) :
?>
- <?php the_time('d/m/y') ?>: "><?php the_title(); ?>
<?php endforeach; ?>
<?php endwhile; ?></h4>
<h3 class="left"><FONT COLOR="darkred">*** END OF FILE ***</FONT></h3>
<?php get_footer(); ?>