hoktar
Forum Replies Created
-
Forum: Themes and Templates
In reply to: no images in themeIs this code from your .css style sheet?
Because then the paths need to be relative!So this should do it:
body { background: url(images/bg2.png); repeat-x #FFFFFF; font-size:12px; font-family:'Lucida Grande', 'Lucida Sans Unicode', Tahoma, Arial, san-serif; color:#000000;}Forum: Themes and Templates
In reply to: How to change the text output of "previous_post_link()" ?Dude are you the creator of WP? – you seem to know just EVERYTHING about it π
What can I say, thank you so much, it works!
Forum: Themes and Templates
In reply to: How to change the text output of "previous_post_link()" ?Oh now I understand, thanks!
But now there is another problem, I need the link to use a certain css class…
Is there really no way to just get the raw link itself?
Sometimes it seems to me that they kind of trye too hard to make it easy to use, they can’t cover every option a user needs so they should also provide basic funtcions so you can build functions they don’t provide on your own.
Forum: Themes and Templates
In reply to: How to change the text output of "previous_post_link()" ?Thank so much for your help first of all! But unfortunately I need a link that doesn’t distinguish between categories.
Forum: Themes and Templates
In reply to: How to change the text output of "previous_post_link()" ?Yes i DID read the codex of cours but either I am blind or too dumb to see anything.
So here are the possible arguments:
<?php previous_post_link($format, $link, $in_same_cat = false, $excluded_categories = ''); ?>and as I said, it doesn’t work to use
revious_post_link('more');I can only use
revious_post_link('more %link');but that only puts a “more” in front of the usual pottitle-link, which I can put there myself too..Forum: Themes and Templates
In reply to: Is there any way to find out the number of an article?Ahh right, I forgot bout this! Thanks again!
Forum: Themes and Templates
In reply to: Is there any way to find out the number of an article?Ok now THIS really creapes me out, all of a sudden it works. I changed absolutely nothing, just reloaded half an our later and it worked.
You might say, cache but I also cleared the cache before and it didn’t help. But now it works. No Idea why, but who cares πThanks a lot all of you and especially alchymyth!
Forum: Themes and Templates
In reply to: Is there any way to find out the number of an article?Unfortunately it doesn’t work as hoped.
There is no output from the function.I put this into my fuctions.php in my theme
function updateNumbers() { global $wpdb; $querystr = "SELECT $wpdb->posts.* FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'post' "; $pageposts = $wpdb->get_results($querystr, OBJECT); $counts = 0 ; if ($pageposts): foreach ($pageposts as $post): setup_postdata($post); $counts++; add_post_meta($post->ID, 'incr_number', $counts, true); update_post_meta($post->ID, 'incr_number', $counts); endforeach; endif; } add_action ( 'publish_post', 'updateNumbers' ); add_action ( 'deleted_post', 'updateNumbers' ); add_action ( 'edit_post', 'updateNumbers' ); ]And this is my code for displaying the post:
<?php global $post; $myposts = get_posts('numberposts=1&offset=0&category=3'); foreach($myposts as $post) : setup_postdata($post);?> //then some output like the_content()... //and herer the call to get the number: but this doesn's show anything: <?php echo get_post_meta($post->ID,'incr_number',true); ?> <?php endforeach; ?>Forum: Themes and Templates
In reply to: Is there any way to find out the number of an article?First of all thank you guys for all your answers!
@gisha James
That’s exactly what I use in the loop π but when it comes to displaying the numer of only one post Rich ‘elfin’ Pedley is right, I need something different. But thanks!@alchymyth
Once again, you are my hero!
I’ll try that right!Forum: Themes and Templates
In reply to: Is there any way to find out the number of an article?Well, no that’s exactly what I can unfortunately not use because of what I described above π
See, let’s say I have 2 posts, but each post was edited 3 times, now in the DB it looks like this:ID | post_title | post_status
—————————–
1 | bla | publish
2 | bla | refurbish
3 | bla | refurbish
4 | lorem | publish
5 | lorem| refurbish
6 | lorem| refurbishYou see, my two posts have the IDs 1 and 4 because of those backups hat use the same IDs, while i would need them to have he IDs 1 and 2.
Forum: Themes and Templates
In reply to: no images in themeHail alchymyth for he is God.
Thanks a lot dude, you saved my day!
Forum: Themes and Templates
In reply to: no images in themeEDIT
Forum: Themes and Templates
In reply to: no images in theme“firefox for instance does not show little squares with red crosses for missing images. ”
Damn, I thought so to, I haven’t seen those little bastards for a while now π
But still, the path is correct, the images are in the standard “image” folder any theme usually has which is at the same level as the header.php. Therefore the path is “images/myimage.jpg” when I put it in header.php. But it doesn’t work.
Forum: Themes and Templates
In reply to: no images in themeOh and I tried to put the images in the header, index and footer.php, nothing works.
Forum: Plugins
In reply to: [Plugin: Effects for NextGEN Gallery] Not workingDoesn’t work for me either.
WP 2.9It just doesn’t happen anything when i activate the plugin at the pluginlist and the lightbox in the settings.
(Dabei wΓ€r das so Plugin super, genauwas ich brΓ€ucht!)