Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134490

tman1991 on "Displaying Post Content Into Website Using Integration Tutorial"

$
0
0

I have recently set up my html website, changed it to php, and have wordpress post titles displaying on my website I created. However, using the code provided in this tutorial "http://codex.wordpress.org/Integrating_WordPress_with_Your_Website," I was unable to display the post content. It only shows the post title and is linked to the post in my /blog/ folder. I want to display the title and then the content of the posts under the title. I hope this is an easy fix. If anyone knows what to change in my code to display the content of the posts it will be greatly appreciated.

Thanks all.

'<?php
global $post;
$args = array( 'posts_per_page' => 5 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>
<?php endforeach; ?> '


Viewing all articles
Browse latest Browse all 134490

Trending Articles