tollboy
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Virtue] Font Size/Line Height of Main NavIs this option only in the paid version of the theme? I am using the free version and do not see it.
I see Appearance > Customize but not Appearance > Theme Options
Forum: Fixing WordPress
In reply to: 404 error on home page?samboll he has several post on the site you can see them in the sidebar
Forum: Fixing WordPress
In reply to: 404 error on home page?I am at a los then as to why it is happening unless someone else has some ideas. I have never used a webhosting install service though for my wordpress installs, because I am unsure how it is installing the software. I might suggest manually replaceing the wordpress install with the latest software (MAKE SURE YOU DO NOT OVERWRITE YOUR “WP-CONTENT” FOLDER IF YOU DO THIS THOUGH). Other than that I have no real ideas.
Forum: Fixing WordPress
In reply to: 404 error on home page?I was wondering if in the settings you set up a static page for your posts? Also did you change your permalinks? And another issue could be, did you have your site set up on a directory somewhere and then change it to http://baseballbat.org.uk/.
Did you set it up to go to the latest post by only displaying one entry on the blog page? Give a little more info about what you did to get the wordpress install on the server, if you did anything irregular.
Forum: Plugins
In reply to: [Plugin: Twitter Tools] twitter tools Install / Uninstall ProblemsI was actually testing out some different twitter plug-ins but after I installed twitter tools then deactivated it I could not try out any others they kept giving me parsing errors. Is this possibly a broblem with info left on the DB after being uninstalled?
Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allThank you, and thanks again for the help as well.
Forum: Fixing WordPress
In reply to: 404 error on home page?You do not have other pages made up for the site right?
Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allhere is the patsingle.php file. The nitSingle is pretty much the same with some specific classes switched out, and the floats flip flopped.
<div class="headerPostPat"></div> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="patrickPost"> <div class="patrickPostTop"></div> <div class="patrickPostMid"> <div id="dateBrown"> <div class="dateMonth"><?php echo get_the_time(__('M')) ?></div> <div class="dateDay"><?php echo get_the_time(__('d')) ?></div> <div class="dateYear"><?php echo get_the_time(__('Y')) ?></div> </div> <div class="post" id="post-<?php the_ID(); ?>"> <h1 class="article_title"><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h1> <div class="entry"> <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> <?php link_pages('<p><strong>Pages:</strong> ', '</p>', 'number'); ?> </div> </div> </div> <div class="patrickPostBot"></div> <?php comments_template(); ?> <?php endwhile; else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?> </div> <div class="sideRight"> <div id="aboveSidebar">About Us</div> <?php get_sidebar(); ?> </div> </div></div></div>Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allhere it is working, i think
<?php /* Template Name: Single Post */ get_header(); if ('3' == $post->post_author) { include (TEMPLATEPATH . '/nitSingle.php'); } else { include (TEMPLATEPATH . '/patSingle.php'); } get_footer(); ?>Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allhehe spoke a little soon, page keeps repeating over and over, I might be able to make this work still though
Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allapljdi you are the man/woman!!!
that was what i needed exactly. As far as i can tell it is working perfectly now. Feel free to check it out at.
http://nitpat.com
Thanks a ton! seriously.
here is the final code I used.<?php /* Template Name: Single Post */ get_header(); if (have_posts()) { while (have_posts()) { if ('3' == $post->post_author) { include (TEMPLATEPATH . '/nitSingle.php'); } else { include (TEMPLATEPATH . '/patSingle.php'); } } } get_footer(); ?>t31os thanks for jumping in as well, but as they say if it isn’t broke don’ fix it. But i have made note of your suggestion as well. Thank you both.
Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allSo you are saying that i can switch between the two template paths (these would be the 2 formats), but the method I am trying with “is_author” will not work? I did see that it was meant for an archive page in the link or a related link from where you sent me.
OK so I will try something with the $post->post_author, is it possible you could give me a quick example or a link to an example of this. This is the first theme i have created completely by myself and even though I am hitting walls i am really learning a ton. Thanks again for any help you can give me.Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allI tried, for several hours now. I am loosing my mind though and need to step away. This is all I am lacking on my site so that is why I am being so relentless. Anyway here is where I am if someone wants to help me until I am able to pic it back up.
<?php get_header(); ?> <?php if (is_author(3)) { include (TEMPLATEPATH . '/nitSingle.php'); } else { include (TEMPLATEPATH . '/patSingle.php'); } ?> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allYes I did notice your link after I left my responses. I am working on trying some now, I still have not got it to work properly but at least I have a lead on how to go about doing it. If and when I find the solution I will post it.
Forum: Fixing WordPress
In reply to: a simple if statement, but I am no php writer at allI take it back this is working kind of. It is not recognizing the if statement as true though so it always follow the second templatepath. i need to have it recognize the correct author for the if statement.