Ryan Fitzer
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Moving SidebarSo what’s your question?
Forum: Fixing WordPress
In reply to: Validating Integrated WP within designQuickly thinking about it, what you would need to do is take all of the contents of header.php and integrate them into the main head elament of your site, get rid of the call to the header.php in all of the templates. Then get rid of the duplicate body tags.
The amount of work to integrate three pages would be the same as making the whole site in WordPress. The site’s layout is very simple. You seem to have a done a great job in cleaning everything up (I’m assuming you had a real tag soup before). Since all of the css is in place, it would just be a matter of pluging in the neccessary WP scripts.
As far as the navigation goes, the only javascript part I can see is the rollover (image swap) which is easily taken care of by defining the background with
a:hoverin css. You would use an unordered list for the nav and apply a unique id for each nav link<li>and then pad the right of each link progressively larger to mimic the curved transition. But you could also just keep the tables and be just fine.The only thing you could not use WP for would be to add new pages to the nav, you would have to add them manually since the navigation is so custom. This would just mean that you would create a new page in the WP admin and then take it’s uri and plug it in to the navigation manually. Not much problem if your not going to keep adding new pages all the time. I think you could do it. The time spent would be a lot less than the time it will take to update the old all the time.
Forum: Fixing WordPress
In reply to: Validating Integrated WP within designYour defining the doctype twice. This is the problem. This is giving you duplicates of the head and body tags. You need to integrate WP in without all of the duplication.
Forum: Fixing WordPress
In reply to: Validating Integrated WP within designYes, you can provide a link.
Forum: Fixing WordPress
In reply to: Embedding Google Video _without_ modifying the code?One quick thing to remeber is that the
<embed>element will keep your pages from validating as it is a proprietary element for Internet Explorer.Forum: Fixing WordPress
In reply to: Embedding Google Video _without_ modifying the code?This plugin from Viper007Bond works like a charm:
http://www.viper007bond.com/wordpress-plugins/vipers-video-quicktags/
It puts a button for each on your editor (both the rich and the quicktags one). Give it a whirl.
Forum: Plugins
In reply to: title of new posts appear in list on homepageThis is what I used:
<?php
$posts = get_posts("category=2" . "&numberposts=5");
if( $posts ) :
?><div class="recent-posts">
<h4><a href="index.php?cat=2">Recent News »</a></h4>
<ul>
<?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
<?php
$even_odd = ( 'odd' != $even_odd ) ? 'odd' : '';
?>
<li class="<?php echo $even_odd; ?>"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?></ul>
</div>
<?php endif; ?>
The parts you’ll need to change: (Line numbers include blank lines)
Line 2, change the category id# and the number of posts to show.
Line 8, the “href” of the category id# archive. And of course the category name on that same line.Forum: Plugins
In reply to: Creating a nav with sub nav drop-downsThis link might help
http://codex.wordpress.org/Creating_an_Archive_Index
And then this piece of code that I use in the sidebar (but you could use it in a page template) to get a specific category’s post titles. Hope this helps.
<?php
$posts = get_posts("category=2" . "&numberposts=5");
if( $posts ) :
?><div class="recent-posts">
<h4><a href="index.php?cat=2">Recent News »</a></h4>
<ul>
<?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
<?php
$even_odd = ( 'odd' != $even_odd ) ? 'odd' : '';
?>
<li class="<?php echo $even_odd; ?>"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?></ul>
</div>
<?php endif; ?>
Forum: Plugins
In reply to: Creating a nav with sub nav drop-downsAre you saying that you would like to have a page in navigation for a specific category (say “sports” for example) and when you click on that page link it displays all of the posts in that category. If not, give me a link to see what you mean.
Forum: Fixing WordPress
In reply to: How do I customize how one category is viewed?Thanks for all the testing Danny. This makes my job so much easier.
Forum: Fixing WordPress
In reply to: How do I customize how one category is viewed?The first category that the post is tagged with. If you have a post that you tagged with three categories how does this plugin know which category to go by when determining a template?
Forum: Fixing WordPress
In reply to: How do I customize how one category is viewed?Excellent. He makes the some of the most useful plugins. While working this out, I never really got to the part where I would need a separate template for a single post in a certain category. What happens if you tag your posts with more than one category? Does it default to the first one listed maybe?
Forum: Fixing WordPress
In reply to: How do I customize how one category is viewed?What I am understanding is that you want a persistent submenu throughout your gallery section. If that’s correct than follow along.
Ok, set up your Gallery page with a custom page template (“gallery.php”) that shows only posts from the specific parent category you want (custom loop). For the example let’s say the parent category is called “Gallery” with an ID# of 2. Next, set up some subcategories for your parent (years in your case, “2004”, “2005”, “2006”).
In the “gallery.php” template use the template tag wp_list_cats() to show only the subcategories of the “gallery” category in an unordered list like so:
<ul>
<?php wp_list_cats('hide_empty=0&child_of=2'); ?>
</ul>There lots of arguments you can place in here to customize it further if you like. One very important one is “file” which specifies a template to use to display the content of whichever category the user clicks on. Putting the above template tag in this template will keep that list of subcategories in there. From there you can put this in a single post view template as well.
Great work.