That’s not a WordPress website
lifeasme.16mb.com/blog is wordpress
I’m getting posts from wordpress on my website using: ` <?php query_posts(‘category_name=Home’.get_the_title().’&post_status=publish,future’);?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php the_date(); echo ‘<br />’?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(); ?>
<?php endwhile; else: endif; ?> `
I get 403 errors trying to access pages on that site. That said, how comments look is generally a function of your theme.
It sounds like what you want is a normal function of WordPress. WorkPress can show the number of comments in the meta information or with a plugin all the separate comments. When you click on one the post with the comments opens.
Why are you trying to rebuild WP on an html page? What do you want to do?
WordPress also has an option of a static page being the “home” page.
So what I’m aiming for is :
1) http://imgur.com/8ZnCDvJ Link to comments for THAT post.
2) http://imgur.com/5G6lmnA when pressed the link ‘Comments’ it opens up and displays the post WITH comments under it.
This is normal WordPress functions, as kmessinger noted. You may want to do some styling or pick a theme that’s pretty close to what you want.
(@duxieking)
7 years, 11 months ago
Hello, I am still quite new to coding websites, I already managed to make the posts come up on different pages when you post on WP. But I want to create comments section on the page.
I will try to explain as best as I can what I mean by that 🙂
http://lifeasme.16mb.com/ <— That is the link for my website if anyone wants to check it out.
1) I want something like that to pop up under the post on my website that I linked above. http://imgur.com/ddt7y9K Text saying ‘Comments’ and number of them
2) When you press on ‘Comments’ I want the post to open in other tab or same tab displaying comments under it.
I hope I explained it well 🙂 Can someone help me how to create something like that? I was looking online for everything and I couldn’t find the answer and if I found something useful it would display error or won’t work. If anyone needs my current code I can post it too 🙂