paul2008
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Lightbox 2 issueLightbox Plus works for me both in Firefox 3.5.3 and IE 7.
Forum: Themes and Templates
In reply to: Lightbox 2 issueThe same thing happens on my website. In Firefox, this only happens to posts with more than 15 pictures. In Internet Explorer it happens in every post, simply doesn’t work.
Where could I look to fix this problem?Thanks in advance.
Forum: Themes and Templates
In reply to: How to place sidebar on the left of contentMaybe you could give a more general advice? Like, should I get rid of the #wrapper or not, or what is the easiest way to put an element on the left of everything else?
Forum: Themes and Templates
In reply to: How to place sidebar on the left of contentSorry, https://vgtees.cn
Thanks for noticing.
Forum: Themes and Templates
In reply to: Getting thumbnails of images attached to a post?Just tried to
print "images[0] is $images[0] !";
and it prints “images [0] is !”
So, $images is empty, I suppose.I don’t know how get_children and all the other stuff involved here works, so I can’t understand why is nothing written in $images.
Could you explain it a little?
Thanks.
Forum: Themes and Templates
In reply to: Getting thumbnails of images attached to a post?A quick update:
I tested the same code on index.php
It displays those 2 error messages right after each post’s excerpt.What am I doing wrong?
Thank you for help.
Forum: Themes and Templates
In reply to: Getting thumbnails of images attached to a post?Hello everyone,
please help me with the error I get (similar to other posters’).
I pasted mintimperial‘s code into my page.php, right after the beginning of posts loop:
if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $images =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . $post->ID ); $firstImageSrc = wp_get_attachment_image_src(array_shift(array_keys($images))); echo "<img src=\"{$firstImageSrc[0]}\" width=\"32\" height=\"32\" />"; ?>
I get 2 errors:
Warning: array_keys(): The first argument should be an array in /home/www/mywebsite.com/wp-content/themes/basic2col/page.php on line 11
Warning: array_shift(): The argument should be an array in /home/www/mywebsite.com/wp-content/themes/basic2col/page.php on line 11
Line 11 being
$firstImageSrc = wp_get_attachment_image_src(array_shift(array_keys($images)));
Is this because $images is actually empty?
And then is &images empty because it searches for pics in posts on the current page (and current page is empty, has no posts)?If correct, then how do I make it search through all posts in the blog, not only on the current page?
Thanks for support.
Forum: Fixing WordPress
In reply to: Where is comments_text() in default theme?Ok,
after looking through comments.php, it seems to me that comment_text() is now replaced with wp_list _comments loop.
Other people also noticed it.So, is there now no way to change the formatting of displayed comments?
Forum: Fixing WordPress
In reply to: Location of Post Meta DataOk, the Kubrick’s theme has posts’ metadata in single.php
Forum: Fixing WordPress
In reply to: Location of Post Meta DataI have the same question and I don’t think it has been answered.
The post metadata Codex section does not mention where one can find that metada that is edited in the examples.
Where can it be found in general, or, at least, for the default Kubrick theme?Forum: Fixing WordPress
In reply to: Don’t want posts to inherit parent categoryI guess it’s ok to show authors’ works together with their bios. I’ll just make the bio post appear first on the list.
Thanks.
Forum: Fixing WordPress
In reply to: Don’t want posts to inherit parent categoryOk, so what would be the right way for me to manage the pictures?
I think no one expects to see pictures when looking for authors. Should I change the logic of categorizing them somehow?I’d appreciate any suggestion.