jcowart
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get_children not working in category pageHere’s how we solved it. We added ‘attachment” to our post_type for our category page. Too, too simple.
post_type (string / array) – use post types. Retrieves posts by Post Types, default value is ‘post’;
■’post’
■’page’
■’revision’
■’attachment’
■’any’ – retrieves any type except revisions
■Custom Post Types (e.g. movies)Forum: Fixing WordPress
In reply to: get_children not working in category pageThanks, but that didn’t work.
This is so weird. My two image functions that call get_children both work when they’re on my blog and my archive and my single posts. It’s only in category that they don’t work. Is there something about category that would prevent get_children from retrieving attached images?
Forum: Fixing WordPress
In reply to: get_children not working in category pageHELP! I can’t figure this out. The code for category.php and single.php are virtually identical. get_children() works in single.php and won’t in category.php. Yet both are set to display the same post.
Can someone please help me with this?
Forum: Fixing WordPress
In reply to: get_children not working in category pageI pasted category.php and single.php. They both call a function named get_main_images() which contains the get_children call. I included the get_main_images function in the bin as well.
Forum: Fixing WordPress
In reply to: get_children not working in category pageAny ideas why
get_children()would work on some pages and not on others?The same code is being called from both my single.php and my category.php.