magisterson
asked 11 years ago

Big photo – last post on homepage, how?

I have installed WallPress theme and I can’t solve this problem.

How to setup theme to get Big photo of my latest post?

Just like here:http://cmspioneer.com/designwall/wp-content/uploads/dw-wallpress-slide-12.jpg

The post with music band is much more width than other.

 

Thanks.

1 Answers
DominicStaff
answered 11 years ago

To resolve this problem. Please see my instruction below:
– Add new post
– At the bottom of content frame there will be “Custom Fields”.
– And add new Custom Fields with:
+ Custom field name: grid
+ Custom field value: double

See the screen shot: http://imgur.com/qh08MCw

Hope this helps !

Regards
Dominic

phpnuker
replied 11 years ago

I do this and now all post that i chooses “grid field” have big photo in home page http://05dag.info

Dominic Staff
replied 11 years ago

please send me username & password your site for further checking
My mail box: [email protected]

Regards,
Dominic

Dominic Staff
replied 11 years ago

To resolve your problem, you can use image size 620 x 380px.
I think you did not use the correct size image.

Hope this helps !
Regards,
Dominic

phpnuker
replied 11 years ago

I changed all images to 620×380 size image, still have the same problem. Look again please.

phpnuker
replied 11 years ago

So, I fined solution:

phpnuker
replied 11 years ago

file “functions.php” line 225-226 need replace

from:
if ( get_post_meta( get_the_ID(), ‘grid’, true ) ) :
$classes[] = ‘grid-‘.get_post_meta( get_the_ID(), ‘grid’, true );

to:
$last = $wpdb->get_row(“SELECT ID FROM wp_posts WHERE post_status = ‘publish’ ORDER BY ID DESC”);
if ( ( get_the_ID() == $last->ID ) ) :
$classes[] = ‘grid-double’;

magisterson
replied 11 years ago

Ok.

magisterson
replied 11 years ago

But there is any way to set theme to automaticly make latest post as big?

Dominic Staff
replied 11 years ago

To resolve this problem. Please see my instruction below:
– Add new post
– At the bottom of content frame there will be “Custom Fields”.
– And add new Custom Fields with:
+ Custom field name: grid
+ Custom field value: double

See the screen shot: http://imgur.com/qh08MCw

Hope this helps !

Regards
Dominic

Powered by DW Question & Answer Pro