sBowers
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: the_content, plus posts?Most excellent. Thank you.
Forum: Fixing WordPress
In reply to: Filter ‘wp_list_categories()’ based in page number?I was making it too tricky.
It worked if I just called the function in the if statement
php if (is_page('36') ) { wp_list_categories('child_of=3&title_li='); } elseif ( is_page('42') ) { wp_list_categories('child_of=4&title_li='); } elseif ( is_page('44') ) { wp_list_categories('child_of=5&title_li='); } else { wp_list_categories(); }
Forum: Fixing WordPress
In reply to: Filter ‘wp_list_categories()’ based in page number?Bump
Forum: Fixing WordPress
In reply to: Filter ‘wp_list_categories()’ based in page number?Any Advice?
Forum: Fixing WordPress
In reply to: Filter ‘wp_list_categories()’ based in page number?I think I am close. I used the same if statement to set a variable $cat
<?php // page id 36 will get category ID 3 posts, page 42 will get category 4 posts, page 44 will get category 5 posts if (is_page('36') ) { $cat = array(3); } elseif ( is_page('42') ) { $cat = array(4); } elseif ( is_page('44') ) { $cat = array(5); } else { $cat = ''; } $args = array( 'include' => $cat, 'title_li' =>'' ); ?>
and then I call
<?php wp_list_categories( $args ); ?>
But I am getting the following error:
Warning: preg_split() expects parameter 2 to be string, array given in (path to) wp-includes/taxonomy.php on line 696
Any assistance is appreciated.
Seth
Forum: Fixing WordPress
In reply to: Read More not workingThank you! Worked the first time.
I added the
<?php global $more;?>
before the loop and added
<?php $more = 0;the_content(__('Read more', 'monochrome')); ?>
since I am using that theme.I may learn this php thing yet!
Forum: Fixing WordPress
In reply to: Dispaly catagory on pageThank you for the response.
I used the index.php file as a starting point for my “podcasts” page template. I copied the pageofposts and pasted the index div’s in place. It pulls correctly!
Thank you!
One issue, The “read more” is not triggering a truncated article and the readmore link.
I copied the entire page and I am guessing
<?php the_content(__('Read more', 'monochrome')); ?>
is the line that should trigger that? The line is exactly the same on index and the now pageofposts template. What am I missing?Forum: Fixing WordPress
In reply to: Image Links change to Text on all but “home” pageWhat other information might be needed?
Forum: Fixing WordPress
In reply to: RSS Feed not rendering correctly until reloadI see the
<ul>
in firebug. Not in the editor on the wordpress admin side though. weird.Forum: Fixing WordPress
In reply to: RSS Feed not rendering correctly until reloadI don’t see the
<ul>
. I’m working in ff 3.5 on a pc, a mac and I looked at safari on a mac as well. *shrugs*Anyone else have it render weird?
Forum: Fixing WordPress
In reply to: RSS Feed not rendering correctly until reloadthe code I put in looks like this:
<?php include_once(ABSPATH.WPINC.'/rss.php'); wp_rss('https://pipes.yahoo.com/pipes/pipe.run?_id=a63b2ab6f8908c8dc252165d5ac93282&_render=rss', 10); ?>