Title: Embedding into a website using HTML
Last modified: August 21, 2016

---

# Embedding into a website using HTML

 *  Resolved [kimbo_king](https://wordpress.org/support/users/kimbo_king/)
 * (@kimbo_king)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/)
 * Hi all
 * Not sure if this is the right section, if not then apologies!
 * I’m new to WordPress (and HTML/ CSS/ etc is general to be honest) but have been
   advised to use it as a part of my website. Loving the look and feel of it so 
   far but have hit a stumbling block.
 * I’ve searched the web for a relevant tutorial but only seen PHP versions.
 * I was wondering if I could embed my blog onto my homepage with HHML/ CSS?. If
   I do need PHP, I ‘m not sure where to paste this in my html file (The tutorial
   is a little vague in that respect for a total noob like myself)
 * I would also like to show different parts of my blog on different sections of
   my site. Am I best to do this with the tags or categories (Guessing the latter)
 * IE: One one page I will show only blog posts with a ‘X’ category and another 
   will show only ‘category’ articles

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/embedding-into-a-website-using-html/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/embedding-into-a-website-using-html/page/2/?output_format=md)

 *  [Archie Makuwa](https://wordpress.org/support/users/archie22is/)
 * (@archie22is)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937274)
 * As far as I understand you, there is no need to embed anything anywhere. All 
   you have to do:
 * – Login to admin
    – Settings – Reading – Front page displays (check: Your latest
   posts)
 * I hope that answers your question. You just threw me off course there…
 *  Thread Starter [kimbo_king](https://wordpress.org/support/users/kimbo_king/)
 * (@kimbo_king)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937371)
 * Hi
 * Not sure If I explained well, apologies.
 * I have a website which is coded in HTML, I want my blog to be integrated into
   the design not in a separate section IE site.com/blog
 * Now I think I’ll have to take some HTML from my blog and post it into my current
   site but not sure how to do it? I’d like to show the last 20 posts or something
   similar.
 * Essentially I want to do this:
 * [http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website](http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website)
 * But in HTML (Or PHP if required, but I don’t know where to post the PHP in my
   HTML from the guide)
 *  [Archie Makuwa](https://wordpress.org/support/users/archie22is/)
 * (@archie22is)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937375)
 * Now that is better 🙂
 * You have to convert you html pages into Php (simply change the extensions from
   html to php).
 * The follows the instructions in the link. I would put:
    – www (all my site content)–
   www/blog (my WordPress blog)
 * And then reference the blog as stated in the tutorial link. To display the last
   20 blogs in your case you would paste the following code where you want the list
   of posts to appear:
 *     ```
       // Get the last 3 posts.
   
       <?php
       global $post;
       $args = array( 'posts_per_page' => 20 );
       $myposts = get_posts( $args );
       foreach( $myposts as $post ) :	setup_postdata($post); ?>
       <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
       <?php endforeach; ?>
       ```
   
 *  Thread Starter [kimbo_king](https://wordpress.org/support/users/kimbo_king/)
 * (@kimbo_king)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937380)
 * Top top man
 * Thanks so much, wioll try this when I get home tonight
 * Really appreciated!
 *  Thread Starter [kimbo_king](https://wordpress.org/support/users/kimbo_king/)
 * (@kimbo_king)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937400)
 * Hi
 * Really appreciate your help. I played with this all last night but cannot get
   it to work
 * I can get PHP to work fine its just this bit of code which doesn’t.
 * Think I might be slipping up at the location of my header.php
 * I am linking to where this file is held on my web host but not sure if I’m linking
   to the correct one. I am using the twentytwelve skin so I’m linking/ grabing 
   the header.php from within there is that right?
 * Also, I don’t quite grasp your comment below:
 * _I would put:
    – www (all my site content) – www/blog (my WordPress blog)
 * This is probably a crucial step I am missing 
 * I can now read the PHP fine but cnnot for the lifeof me work out why its not 
   working !!!
 *  Thread Starter [kimbo_king](https://wordpress.org/support/users/kimbo_king/)
 * (@kimbo_king)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937446)
 * I’m really lost with this still 🙁
 *  Thread Starter [kimbo_king](https://wordpress.org/support/users/kimbo_king/)
 * (@kimbo_king)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937448)
 * HI
 * I’ve exhausted every option available now but still cant get this to work
 * I think it may be something really simple like using the incorrect path
 * My wp-header .php is in
 * Root/blog/ wp-header .php
 * How do I link to this?
 * I have tried every possible combination (without root, wit root, eith dots etc…)
 * I’m using Ipage
 *  [Archie Makuwa](https://wordpress.org/support/users/archie22is/)
 * (@archie22is)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937449)
 * Hi Kimbo,
 * I will get back to your question in a few hours time – in the middle of something
   right now.
 *  Thread Starter [kimbo_king](https://wordpress.org/support/users/kimbo_king/)
 * (@kimbo_king)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937455)
 * Thanks Archie
 * REALLY appreciate your time!
 *  Thread Starter [kimbo_king](https://wordpress.org/support/users/kimbo_king/)
 * (@kimbo_king)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937459)
 * I’ve cracked it
 * thanks again
 *  [Archie Makuwa](https://wordpress.org/support/users/archie22is/)
 * (@archie22is)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937461)
 * That is good Kimbo_king!! Glad to hear you cracked it 🙂
 * You can share your solution with the rest and mark this as resolved.
 *  [petechambers](https://wordpress.org/support/users/petechambers/)
 * (@petechambers)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937481)
 * Hello kimbo_king and Archie22is !!
 * I’ve been trying to figure this out myself but to no avail. Can you please post
   the instructions? Thanks.
 *  [Archie Makuwa](https://wordpress.org/support/users/archie22is/)
 * (@archie22is)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937482)
 * Hey Petechembers,
 * Did you come right? Sorry I have been really busy over the past few days – still
   am, but decided to check my mail and see what’s WHAT!!
 * Make sure that you follow the steps above and especially the steps on this url:
   [http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website](http://codex.wordpress.org/Integrating_Wordpress_with_Your_Website)
 * Let me know if you still can’t get it right – be specific (what you have done
   and where you are getting stuck). Time is the enemy at the moment
 *  [WPyogi](https://wordpress.org/support/users/wpyogi/)
 * (@wpyogi)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937483)
 * [@petechambers](https://wordpress.org/support/users/petechambers/) – please start
   a new thread per [http://codex.wordpress.org/Forum_Welcome#Where_To_Post](http://codex.wordpress.org/Forum_Welcome#Where_To_Post)–
   this one is marked resolved.
 *  [adminjack](https://wordpress.org/support/users/adminjack/)
 * (@adminjack)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/#post-3937484)
 * Hello,
    Can anybody help me with this: When I want to embed a Youtube video (
   WordPress 3.6) I apparently need a link like this one:
 * [embed]http://www.youtube.com/watch?v=7YHhWUpVR4M&feature=share&list=TL9Uk76LpvHm8CGcEjTobnHDzMb4sSbhqb[/
   embed]
 * Now I can find the normal type of link or Youtube videos, for instance this type:
 * [http://www.youtube.com/watch?v=7YHhWUpVR4M](http://www.youtube.com/watch?v=7YHhWUpVR4M)
 * But where do I find the
 * feature=share&list=TL9Uk76LpvHm8CGcEjTobnHDzMb4sSbhqb
 * code?
    Jan

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/topic/embedding-into-a-website-using-html/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/embedding-into-a-website-using-html/page/2/?output_format=md)

The topic ‘Embedding into a website using HTML’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 19 replies
 * 7 participants
 * Last reply from: [Archie Makuwa](https://wordpress.org/support/users/archie22is/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/embedding-into-a-website-using-html/page/2/#post-3937517)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
