WordPress.org

Ready to get started?Download WordPress

Forums

Pulling WordPress To My Own Website (2 posts)

  1. Matthew Notes
    Member
    Posted 2 years ago #

    Now basically what I am going to doing is using my WordPress blog and pulling my blog posts to my website for my convenience. Now when I post videos/pictures I would like to control how big it shows on my own domain rather than on the actual WordPress blog. I am using my WordPress blog and pulling my posts to my own domain for my websites home page design.

    Here is the code I am currently using on my home page:

    <?php
    require('blog/wp-blog-header.php');
    ?>
    
    <?php
    $posts = get_posts('numberposts=10&order=DESC&orderby=post_title');
    foreach ($posts as $post) : start_wp(); ?>
    <?php query_posts("order=DESC"); ?>
    <?php the_date(); echo "<br />"; ?>
    <?php the_time(); echo "<br />"; ?>
    <?php the_title(); ?>
    <?php the_content(); ?>
    
    <?php
    endforeach;
    ?>

    Can anyone help me? Thanks!

  2. Matthew Notes
    Member
    Posted 2 years ago #

    I basically would like to tell me website "Hey if an image posts I want it to display 200x200 px and if a video posts I want it to show 200x200px"

    I hope you can understand and help, thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic