nadine00
Forum Replies Created
-
Forum: Themes and Templates
In reply to: "cateogry__and" work aroundIt would also help if i spelt that there post title right, but i’m dyslexic. So, it happens sometimes. Sorry.
Forum: Themes and Templates
In reply to: "cateogry__and" work aroundHelp? Anyone?
Basically what’s happening is the user is supplying the first category through the admin, then i’m combining it with another hard coded category (it never changes).
I really need to find a workaround that will work with 3.2, my whole template worked on a custom bit of data and category__and ?? so the bug in the upgrade really, really borked me.
Forum: Themes and Templates
In reply to: Orderby comment count…Nevermind! Found a solution.
Hmm. I think i found something that works in this case, but its still weird that get_post_custom() just flaked out.
Forum: Fixing WordPress
In reply to: Blog page constantly reverting to index pageHa! found it. Figures right after I post something.
Forum: Themes and Templates
In reply to: display all the custom fields in the current postSoooo….I can get the keys using https://codex.www.ads-software.com/Function_Reference/get_post_custom_keys …but the values want a specific key in the options.
I still don’t know why the original custom snippit does not work: `<?php
$custom_fields = get_post_custom($post->ID);
$my_custom_field = $custom_fields[‘my_custom_field’];
foreach ( $my_custom_field as $key => $value )
echo $key . ” => ” . $value . “<br />”;?>`
Stumped.
Anyone? Or another way to pull values?
Thanks
Nadine
Forum: Themes and Templates
In reply to: display all the custom fields in the current postWell
<?php the_meta(); ?>
worked, but now I have to basically find a way to do this:<li><a href="$meta_value">$meta_key</a></li>
Which I think involves some kind of array parsing. But I am currently unsure on how to achieve this.
Thanks.
Nadine
Forum: Plugins
In reply to: [Custom Field Template] Set image sizeStill looking for a solution for this. Anyone?
Thanks.
Forum: Plugins
In reply to: [Custom Field Template] Set image sizeAnyone? I’m still looking for a solution to this.
Thank you.
Nadine
Forum: Themes and Templates
In reply to: multiple loops vs rewind loop for content sliderFound it! Well it being a custom group of functions within the theme I was originally using. ??
Forum: Themes and Templates
In reply to: Sticky post from only current categoryGot it.
<?php $sticky = array( 'post__in' => get_option('sticky_posts') );?> <?php query_posts($sticky); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); if(in_category($current_cat)) {?> <?php the_content(); ?> <?php } ?> <?php endwhile; else: ?> <?php endif; ?>
Thanks so much for your suggestion. ??
Nadine.
Forum: Themes and Templates
In reply to: Sticky post from only current categoryhi esmi,
I’ve referenced that page a few times, its been very helpful, but this time, I’m unsure about how to join current category & is sticky into a query. eg:
$current_category = category ID in a variable <?php array=$sticky( caller_get_posts=1, post__in => $current_category && get_option("sticky_posts"), posts_per_page=1 ); ?> <?php array=$sticky( caller_get_posts=1, post__in => array($current_category, 'sticky_posts';), posts_per_page=1 ); ?> ?<php query_posts('caller_get_posts=1&posts_per_page=1&category=$current_category&get_option("sticky_posts")'); ?>
They either come back blank, or pull all the posts across the board marked with sticky. I know I’m combining things improperly, I am just unsure of the proper way to do it. Sorry for the questions….the combining of items always gets me in WP. ??
Or maybe there’s a way to use is_sticky() ?
_n
Forum: Themes and Templates
In reply to: Sticky post from only current categoryHmm, ok i think this plugin will do it: https://www.ads-software.com/extend/plugins/astickypostorderer/
However out of curiosity, is there a way to do it natively with a query in wordpress? Something like:
loop through posts in this category -> if there is a post in ‘current category’ & ‘is a sticky’ then display it at the top, and limit it to 1
Suggestions or tutorial links?
Thanks!
Nadine
Forum: Themes and Templates
In reply to: Specific template for child categoriesThank you! That bottom one worked out quite well for me.
Forum: Fixing WordPress
In reply to: Header Warning pluggable.phpWorks as an empty file, no errors.
Slowly adding functions back in to see where the issue is.
Thank you.