From 87ceee4e239e1f8d714d71c09b9d40626a5ebb87 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 26 Mar 2015 16:58:55 -0400 Subject: [PATCH] working on posts pages --- home.php | 7 -- single.php | 199 +++++++++++++++++++++++++---------------------------- 2 files changed, 95 insertions(+), 111 deletions(-) diff --git a/home.php b/home.php index ed53af7..b30c048 100644 --- a/home.php +++ b/home.php @@ -14,13 +14,6 @@
-
-
- -
-
> diff --git a/single.php b/single.php index 3c259c2..812f45d 100644 --- a/single.php +++ b/single.php @@ -1,113 +1,104 @@ -
-
-
- -
-
-
- -
-
-
- -
-
+
+
+
+ +
-
- -
-
-
-
-
> -
-

- Posted on -
- -
- - $cat->name, 'slug' => $cat->slug ); - echo ''. $cat->name .', '; +
+
+ +
+
+
+
+
> +
+

+ Posted on +
+ +
+ $cat->name, 'slug' => $cat->slug ); + echo ''. $cat->name .', '; + } } - } - $post_tags = wp_get_post_tags( get_the_ID() ); - $tags = array(); - if (has_tag( )) { - echo ' and tagged '; - foreach($post_tags as $t){ - $tag = get_tag( $t ); - $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); - echo ''. $tag->name .', '; + $post_tags = wp_get_post_tags( get_the_ID() ); + $tags = array(); + if (has_tag( )) { + echo ' and tagged '; + foreach($post_tags as $t){ + $tag = get_tag( $t ); + $tags[] = array( 'name' => $tag->name, 'slug' => $tag->slug ); + echo ''. $tag->name .', '; + } } - } - - echo ' on '; - echo ' ' . the_time('F jS, Y') . '. '; - ?> - -
-
-
+ echo ' on '; + echo ' ' . the_time('F jS, Y') . '. '; + ?> +
+
+
+
+ + +
+

+
+ +
+
+
+
+
+ +
+
+

Recent Posts

+
    + '5' ); + $recent_posts = wp_get_recent_posts( $args ); + foreach( $recent_posts as $recent ){ + echo '
  • ' . $recent["post_title"].'
  • '; + } + ?> +
+

Archive

+
    'monthly', 'limit' => 12 ) ); ?>
+

Categories

+ +
+
+
+
+
    +
  • +
  • +
  • +
  • +
+
- - -
-

-
- -
-
-
- -

Recent Posts

-
    - '5' ); - $recent_posts = wp_get_recent_posts( $args ); - foreach( $recent_posts as $recent ){ - echo '
  • ' . $recent["post_title"].'
  • '; - } - ?> -
-

Archive

-
    'monthly', 'limit' => 12 ) ); ?>
-

Categories

-
-
-
-
-
    -
  • -
  • -
  • -
  • -
-
-
-
- + -- 2.17.1