kreso777
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: RSS prolem – complete HTML code is included at the endThanks for your reply, afterwards I did try switching off all plugins, but one by one, not all of them at once. Didn’t help.
Third one didn’t cross my mind, and I couldn’t try second on a live site…Anyways, putting <?php die; ?> at the end of feed-rss2.php did help.
Forum: Fixing WordPress
In reply to: Custom fieldsSorry for the ambiguous topic title, too late for changing.
Anyways, after 2 hours of testing and googling, finally managed to get it work. For the future reference, if anyone stumbles up here while googling here goes:
<?php $myposts = get_posts('meta_key=CUSTOM_VALUE&meta_compare=>&meta_value=20&orderby=meta_value&ordrer=ASC'); foreach($myposts as $post) : setup_postdata($post); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title();?></a> <?php echo get_post_meta($post->ID, 'CUSTOM_VALUE', true); ?></li> <?php endforeach; ?>Forum: Fixing WordPress
In reply to: Get number of categories for postNice, thank you. It works, but…
By default, I’m displaying 14 posts on the frontpage, with this, it displays 14 minus number of posts in video category only.Problem is I’ve got posts in two columns, so if there would be only one post excluded, there would be uneven number of posts… So I should probably do the filtering in the query :/
The “cat=-815” thing in the query doesn’t work because it filters out every post that has ben tagged as video.I think I’ll go to bed now and work this out tomorrow, can’t think straight anymore… If you’ve got any more ideas, let me know, ty π
Forum: Fixing WordPress
In reply to: Get number of categories for postUm, category, not comment π
And actually i’d need it on front page… To be precise, here’s the problem:
I’ve got video category and I don’t want to display a post on a front page if it’s only in the video category. If it is video plus any other category – fine.
Any other way of doing that?Forum: Everything else WordPress
In reply to: wp_footer() placementAs I’ve said – it loads faster when it is in header than in footer.
jQuery featured content rotation and tabbed box are loading very long if wp_footer is in footer as it should be.
When I place it in header (like now)Regarding validator, code is more-less valid when I comment out video box on the bottom (4 errors remain though). They are mostly related to using “&” in links…
page.php calls footer.php with <?php get_footer(); ?>
No, I mean the content / code that it writes out. It must be some <script> lines to include javascript, since when I remove wp_footer from my template, wp-polls plugin doesn’t work (because javascript doesn’t load).There’s something in the wp_footer that prevents other javascript files from fully loading immediatley.
Forum: Everything else WordPress
In reply to: wp_footer() placementHm, it works fine if it is placed in heaader, right after wp_header(), and just halts loading a bit when placed in footer.
URL is http://www.serijala.com
wp_footer() is currently in header and it works fine now… But I’m just concerned if it’s a smart thing to do, putting wp_footer in header.How can i find what is loaded by wp_footer()?
Forum: Everything else WordPress
In reply to: wp_footer() placementUh, I apologise for double post :/
Forum: Everything else WordPress
In reply to: Check if main page – outside index.phpI’ll try with request uri tomorrow, ty.
is_index() doesn’t exist, is_home() doesn’t work, as I said above… :/Hokay, here’s more info:
My site is here: http://www.serijala.com/
I’m using a free theme / template, so I’m still not that familiar with ins and outs of the template (and WP for that matter). The main template file seems to be home.php, I’m trying to put that decision into footer.php.I can’t put it directly into home.php becase of the way theme is coded – what I want to do is put <div>…</div> above my site’s footer, full width. So footer.php is the only option I can see…
Forum: Everything else WordPress
In reply to: Getting category ID and checking if tags existYeah, it did the job for me too π
Regarding the category id, I finnaly found this:
http://www.web-templates.nu/2008/08/29/get-category-id-alternative/
I think this should do the trick, I’ll try that now.Regarding OT: I suppose RSS would be the way to go, it seems there are no mail notifications. I just left a tab open and refreshed once in a while π
Forum: Everything else WordPress
In reply to: Getting category ID and checking if tags existExcellent, thank you!
Didn’t see that in Codex :/If anyone knows how to do the second one, I’d appreciate the help π