Forum Replies Created
- Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236
bantam
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Daniel – Please tell me why on the home page of http://anitamills.com, when I move from page to page with the little white arrows, I keep seeing the same four images. There are at least 8 posts with the “featured” category.
The code in loop-slider.php is
<?php
if ( is_home() ) {
query_posts( array (‘category_name’ => ‘featured’) );
}?>when I tried just the query_posts(‘category_name’ => ‘featured’);
the code drew an error. It’s the code you had suggested and the same that I saw in the codex. Somehow adding the “array” made it work. Not sure if that’s why the pages aren’t displaying correctly. Please help!AdvertismentDeprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bantam
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Sorry – it’s not that I want more images to show up at one time – I like the way the four images work and look. It’s that when I click the arrow on the right, the same four images that I just saw are redisplayed. Not sure why. In your demo, it definitely goes on to different images.
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bantam
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220Now I’m wondering why I’m only seeing 4 images. If I hit the arrow, the same four images show – even though I have 8 posts with images set to the ‘featured’ category.
Now I’m using the code
<?php
if ( is_home() ) {
query_posts( array ( ‘category_name’ => ‘featured’) );
}?>
For some reason the query_posts(‘category_name’ => ‘featured’) doesn’t display anything and draws an error in dreamweaver. I seem to need the array() to make it work. Don’t know why. Is that what’s keeping only 4 images showing?Thanks. Again, the site is http://anitamills.com
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bantam
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220I forgot to say that the website I’m working on is http://anitamills.com
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/html/dev/wp/wp-includes/formatting.php on line 4371Notice: Trying to get property 'comment_author_email' of non-object in /var/html/dev/wp/wp-content/plugins/fv-gravatar-cache/fv-gravatar-cache.php on line 236bantam
ParticipantWarning: Cannot modify header information - headers already sent by (output started at /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php:340) in /var/html/dev/wp/wp-content/plugins/crayon-syntax-highlighter/crayon_wp.class.php on line 220That code kept giving me an error and NO images, but I ended up with this, which solves the problem:
<?php
if ( is_home() ) {
query_posts( array ( ‘category_name’ => ‘featured’, ‘posts_per_page’ => -1 ) );
}?>
That way the other category pages galleries show their post images, and the home page shows the images we want there.
Thanks.