colincameron
Forum Replies Created
-
Forum: Plugins
In reply to: Stopping Quotes from ChangingThanks filosofo
Forum: Fixing WordPress
In reply to: Posting recent entries from two wordpress blogs on one pageI was trying to do the same thing but couldn’t figure it out. I figured out an alternative to doing the feed way. Create a file with just the info you need and include its full URL. Here is what I put in the include file for a definition list of the last five posts.
<?php
define('WP_USE_THEMES', false);
include_once('blog/wp-blog-header.php');
query_posts('posts_per_page=5');
?>
<dl>
<dt>Recent Posts</dt>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<dd><a href="<?php the_permalink() ?>" title="<?php get_the_title() ?>"><?php get_the_title() ?></a></dd>
<?php endwhile; ?>
</dl>
<?php else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?><?php endif;
?>Forum: Themes and Templates
In reply to: List child pages in page templateok thanks
Forum: Themes and Templates
In reply to: Limit Number of characters in sidebarGreat this is exactly what I was looking for but when I looked at the substr function I wasn’t sure it would work like this. Thanks!!
Forum: Themes and Templates
In reply to: Limit Number of characters in sidebarSorry about that. The invalid code isnt on my site, it must have been added because I forgot the backticks.
<?php $posts = get_posts('numberposts=5&offset=0'); foreach($posts as $post) : ?>
<dd><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></dd>
<?php endforeach; ?>Forum: Themes and Templates
In reply to: Custom formatting for wp_list_pagesBTW, isn’t there support for a function file in the templates now? This could make it easier to implement your technique instead of having a plugin.
Forum: Themes and Templates
In reply to: Custom formatting for wp_list_pagesOh wow! thanks for the help niziol. I was playing around with the function last night but didnt get it to work.
Thanks again.
Forum: Themes and Templates
In reply to: Custom formatting for wp_list_pagesOK cool, thanks for the help niziol
Forum: Themes and Templates
In reply to: Custom formatting for wp_list_pagesOh boy, I hope thats not the easiest way. There has to be some fancy way of changing the tag around.
I will give that a shot though. Btw, do you know where to get that plugin you mentioned?
Forum: Themes and Templates
In reply to: Custom formatting for wp_list_pagesAny ideas?
Forum: Themes and Templates
In reply to: Highlight My CommentsGreat, thanks for the tip!
Forum: Themes and Templates
In reply to: Show admin link if logged inGreat, this is exactly what I was looking for!
Forum: Themes and Templates
In reply to: Associating theme files to a ‘Page’Ok I figured it out. I didn’t declare a template name at the top of the file. Im not sure why I was using the other method before.
Thanks again!
Forum: Themes and Templates
In reply to: Associating theme files to a ‘Page’Thanks for the quick response, I must be looking in the wrong place “Page Templates” does not show up on my “write page” page. I have a archives.php file in my theme directory so according to the codex it should be there?..
Thanks again.
Forum: Fixing WordPress
In reply to: Highlight Current Navigationok just making sure i dint mess something up, thanks