CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
Put Categories Archive in List Form?
smithaa99
Permalink to comment
#
February 2011
I need to somehow segregate the post titles from this string.
They are currently appearing like this:
Nancy Park BiographyAlexis
Arvidson Biography
http://www.parkarvidsonacupuncture.com/wordpress/nancy7/
This is the PHP string I'm using currently.
<?php wp_get_archives('category_name=Nancy&type=postbypost&limit=20&format=custom'); ?>
Thanks!
Adam
smithaa99
Permalink to comment
#
February 2011
Nevermind, figured it out. For anyone else that needs this code:
<?php<br />global $post;
$myposts = get_posts('numberposts=10&category=NAME_HERE&order=DESC');
foreach($myposts as $post) :
?>
"><?php the_title(); ?>
<?php endforeach; ?>
Add a Comment
They are currently appearing like this:
Nancy Park BiographyAlexis
Arvidson Biography
http://www.parkarvidsonacupuncture.com/wordpress/nancy7/
This is the PHP string I'm using currently.
Thanks!
Adam
<?php<br />global $post;
$myposts = get_posts('numberposts=10&category=NAME_HERE&order=DESC');
foreach($myposts as $post) :
?>
"><?php the_title(); ?>
<?php endforeach; ?>