Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Nov 2006
    Location
    Washington, DC
    Posts
    30
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Embedded Wordpress's comment still go to wordpress theme instead of using HTML???

    Hi, everyone. I've finally managed to get my wordpress blog embedded into my html (now .php) file and got the theme exactly like my main page. However, if you click on the "no comments" (or any other comment links) it would send the viewers to a completely different designed page which is the wordpress theme that I had installed previously.

    I would like to have the click through go to the individual post (with it's comments) while still retaining my original design.

    What am I missing?
    I've tried searching for solutions to this but what I have found requires a completely different type of structure than I am willing to deal with. I am learning more and more about PHP in setting up the wordpress thing but I still am very much a newbie with it.

    Any hint or answers would be very much appreciated! thanks.

    http://lost-ear-studio.com/blog.php



    P.S. The formatting of the individual posts seem to have been lost in the embedding. For example, I like to use line break to break up my post's text and these line breaks is simply not showing up.

  • #2
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,548
    Thanks
    8
    Thanked 1,094 Times in 1,085 Posts
    Which direction are you doing this ...

    1) You have modified the theme scripts in your theme folder to look like your own site.

    2) You took some WP scripting and put it into your own PHP scripts outside of your theme files.

    If the method is #2, you have to put ALL of the existing theme scripts into your site (outside of WP).

    Your theme folder has many scripts that use it's own images, CSS, templates.
    Not just posts, but categories, comments, archives, plug-ins, etc.

    It's my opinion that you need to customize the theme in WP to make it look like
    your site ... one step further ... use WP for your whole site.


    .

  • #3
    New Coder
    Join Date
    Nov 2006
    Location
    Washington, DC
    Posts
    30
    Thanks
    3
    Thanked 0 Times in 0 Posts
    I basically followed this site to do the #2 thing.
    http://www.corvidworks.com/articles/...on-other-pages

    The problem is that I don't want to have to deal with the theme script and all of that when I can do html and css perfectly well. Not dissing on PHP, I just simply don't have that much of a control over the wordpress theme script as I would like in term of comprehending how it all work together.

    Here is my blog script



    Code:
    <?php
    define('WP_USE_THEMES', false);
    require('./blog/wp-load.php');
    query_posts('showposts=15');
    ?>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Lost Ear Studio</title><link rel="stylesheet" href="style.css" type="text/css" />
    </head>
    
    <body>
    
    <base href="http://lost-ear-studio.com" />
    
    
    <div id="position1">
    <div id="positioning">
    <div id="container">
    
    
    
    
      <div id="body">
        
    	<div id="top"><!-- --></div>
            
    		
            
    		<div id="body1">
    		
            		  <p>&nbsp;</p>
    
    		  		  <p>&nbsp;</p>
    
    		  <h1 align="center">Jeffery Stroud's Blog</h1>
    		  <p align="center">&nbsp;</p>
    		  <p align="center">&nbsp;</p>
    		  <p align="center"><span class="text_top">An aspiring digital media artist</span></p>
    		  <p>&nbsp;</p>
    		<hr />
    		<hr />
    	   <?php while (have_posts()): the_post(); ?>
    <?php endwhile; ?>
    
    <?php while (have_posts()): the_post(); ?>
    <p>&nbsp;</p>
    <h2><?php the_title(); ?></h2>
    <p>&nbsp;</p>
    <?php the_content(); ?>
    
    <p>&nbsp;</p><p>&nbsp;</p>
    <p class="postmetadata">
    <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
    </p>
    <p>&nbsp;</p>
    
    <hr />
    <hr />
    <?php endwhile; ?>
    
     <div class="navigation">
     <div class="alignleft"><?php previous_posts_link('&laquo; Previous Entries') ?></div>
     <div class="alignright"><?php next_posts_link('Next Entries &raquo;','') ?></div>
     </div>
    	   
    	  
    <div id="footer">
    <p align="center"><a href="#">Disclaimer</a> : <a href="#">Contact</a> : <a href="#">FAQ</a></p>
    </div>
    </div>
    <div id="bottom"></div>
    </div>
        
    </div>
    </div>
    </div>
    
    
    
    
    
    
    
    
    </body>
    </html>

  • #4
    Master Coder
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,548
    Thanks
    8
    Thanked 1,094 Times in 1,085 Posts
    What you're doing is basically making your own theme.
    Not much else I can say about it.

    If it were me doing this project, I would find a free theme that is layout-out
    somewhat similar to what I need, and then customize the heck out of it.

    Now what I'm going to say is not meant to be a slam ... it's hard to express
    real emotion using this forum (typing words). Your site isn't typical of most
    sites ... with your huge background "fixed" image and weird middle vertical scroll thing.
    While an artist might say, "be different and creative", I might say, "make a useful
    website that works well for desktop PC, laptops, ipads, smartphones". Your site
    isn't exactly easy to use. In fact, I didn't even notice the navigation until I
    got to the very bottom of the vertical scroll. I wasn't sure how to use your site.

    Being a digital media artist and thinking "too far" out of the box is going to hurt
    you more than help you. Make your site easy to use, useful information, and the
    ability to handle social aspects (facebook, etc). Why not make a whole site
    based off of WordPress ... if you want to have social interaction (comments, etc)?
    Why not make a site designed for small screen (ipad, smartphones) that you can
    use like a business card for advertising your digital media skills?

    Think about what your website should really be about, and who will be using it.
    What is the purpose for having a website in the first place? Why spend the time
    and energy on it if nobody will use it? Things to think about.

  • #5
    New Coder
    Join Date
    Nov 2006
    Location
    Washington, DC
    Posts
    30
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by mlseim View Post
    What you're doing is basically making your own theme.
    Not much else I can say about it.

    If it were me doing this project, I would find a free theme that is layout-out
    somewhat similar to what I need, and then customize the heck out of it.

    Now what I'm going to say is not meant to be a slam ... it's hard to express
    real emotion using this forum (typing words). Your site isn't typical of most
    sites ... with your huge background "fixed" image and weird middle vertical scroll thing.
    While an artist might say, "be different and creative", I might say, "make a useful
    website that works well for desktop PC, laptops, ipads, smartphones". Your site
    isn't exactly easy to use. In fact, I didn't even notice the navigation until I
    got to the very bottom of the vertical scroll. I wasn't sure how to use your site.

    Being a digital media artist and thinking "too far" out of the box is going to hurt
    you more than help you. Make your site easy to use, useful information, and the
    ability to handle social aspects (facebook, etc). Why not make a whole site
    based off of WordPress ... if you want to have social interaction (comments, etc)?
    Why not make a site designed for small screen (ipad, smartphones) that you can
    use like a business card for advertising your digital media skills?

    Think about what your website should really be about, and who will be using it.
    What is the purpose for having a website in the first place? Why spend the time
    and energy on it if nobody will use it? Things to think about.
    I do know about the navigation issue, heh. The design is incomplete by far and I do plan to revise it so it would be more obvious for visitors how to use the site. For now though, what I have in place is a fundamental design that I want to keep. I will be tweaking the top of the column as to hint at more content below and even include an arrow icon next to the column in the visible section.

    The main page is intended to be just a resume. To the side of it would be either my contact info or my online portfolio icon (like a flickr icon to go to my flickr account and a deviantart icon to go to my deviantart gallery). So not much navigation is required anyway other than these icons and to the blog itself.

    I want to keep the background image as it randomly select one of ten images I've picked. Mainly, these backgrounds is a 'preview' of my portfolio. (This was one of my first php experiment/research). How is the performance of the background? It seemed slow for me on my computer.

    There are some design aspect that I just can't figure out if I was building from the wordpress side of it (particularly the 100%-150px top-margin thing I have set). I do not have the skill or experience with wordpress for this. So I may just disable the comment to the post for now until I figure it out down the road. Comments and feedback on my materials does give me inspiration though, so I don't really want to lose this.

    thank you for your feedback :-)

    P.S. One of my next project is to figure out how to make my site browser sensitive so I can switch to a mobile version of the site (which would be exactly the same minus certain bugs that I see on my iPad)


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •