• Resolved kimbo_king

    (@kimbo_king)


    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)
  • 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

    (@kimbo_king)

    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:

    https://codex.www.ads-software.com/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)

    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

    (@kimbo_king)

    Top top man

    Thanks so much, wioll try this when I get home tonight

    Really appreciated!

    Thread Starter kimbo_king

    (@kimbo_king)

    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

    (@kimbo_king)

    I’m really lost with this still ??

    Thread Starter kimbo_king

    (@kimbo_king)

    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

    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

    (@kimbo_king)

    Thanks Archie

    REALLY appreciate your time!

    Thread Starter kimbo_king

    (@kimbo_king)

    I’ve cracked it

    thanks again

    That is good Kimbo_king!! Glad to hear you cracked it ??

    You can share your solution with the rest and mark this as resolved.

    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.

    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: https://codex.www.ads-software.com/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

    @petechambers – please start a new thread per https://codex.www.ads-software.com/Forum_Welcome#Where_To_Post – this one is marked resolved.

    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]https://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:

    https://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)
  • The topic ‘Embedding into a website using HTML’ is closed to new replies.