Configurate
-
Hi dutx12
Please test below page template
https://gist.github.com/tenman/8986621
snapshot
http://tenman.info/labo/snip/files/raindrops-tile.png
Thank you.
I will try now, please confirm the steps:
1 copy, paste and save the code as grid-post.php
upload grid-post.php file in /public_html/wp-content/themes/raindrops
is this correct??
Thank you very much
I think that I’m doing something wrong.
I keep seeing the web as before the changes
change filename from grid-post.php to test.php
create page
Page Attribute MetaBox Template select ‘test’
submit
I have these categories
“Sport”
“National Press”what is the code to separate the magazines by “Categories”?
function raindrops_tile() is using get_posts,
The extraction conditions, please refer to the following
http://codex.wordpress.org/Template_Tags/get_postsexample
$args = array( 'category' => 'category id', // Add Sport category ID( National Press ID) 'posts_per_page' => 12, 'numberposts' => -1, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', // 'meta_key' => '_thumbnail_id', //Shows only has post thumbnail 'post_status' => 'publish', 'post__not_in' => get_option( 'sticky_posts' ), 'raindrops_tile_col' => 4,//columns 2-4 );I put that code
Sorry, doesnt works, The category are:
Nationals: 4
Sports: 3
Computers: 7
Revistas: 5I put 7 (Computers) But appears “All category”
Can you send me the code o the file grid-post.php
<?php /** raindrops_tile( ) * * * * */ $args = array( 'category' => '7'// Add Sport category ID( National Press ID) 'posts_per_page' => 12, 'numberposts' => -1, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', // 'meta_key' => '_thumbnail_id', //Shows only has post thumbnail 'post_status' => 'publish', 'post__not_in' => get_option( 'sticky_posts' ), 'raindrops_tile_col' => 4,//columns 2-4 ); raindrops_tile( $args ); ?>'category' => '7'// Add Sport category ID( National Press ID)change below( add comma )
'category' => '7', // Add Sport category ID( National Press ID)Thank you.
I dont know why, but the configuration dosent work 🙁
http://todoprensa.hostinazo.com/
mayby is the host “hostinazo.com”??
OK, i change the hosting, and this is the results
i put this configuration
whit this result
i change the code whit this
And this is the result
What I need is that after 12 results in category “National” appears 12 other results of the category “Sports”
thank you for all
<?php /** raindrops_tile( ) * * * * */ $args = array( 'category' => '7', 'posts_per_page' => 12, 'numberposts' => -1, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', // 'meta_key' => '_thumbnail_id', //Shows only has post thumbnail 'post_status' => 'publish', 'post__not_in' => get_option( 'sticky_posts' ), 'raindrops_tile_col' => 4,//columns 2-4 ); raindrops_tile( $args ); // add below /** raindrops_tile( ) * * * * */ $args = array( 'category' => '5', 'posts_per_page' => 12, 'numberposts' => -1, 'orderby' => 'post_date', 'order' => 'DESC', 'post_type' => 'post', // 'meta_key' => '_thumbnail_id', //Shows only has post thumbnail 'post_status' => 'publish', 'post__not_in' => get_option( 'sticky_posts' ), 'raindrops_tile_col' => 4,//columns 2-4 ); raindrops_tile( $args ); ?>and Add to style.css below last line.
.portfolio-nav{ display:none; }raindrops_tile() using twice when can not work page navigation.
yesssssssssss, you are very GREAT¡¡¡ The page works fine.
I need configurate one pair of more things
In the top of the each category a TITLE
for example: SPORTSSome space between each post, maybe 0,5 cm
add h2 html element first
raindrops_tile( $args );afterlike below
raindrops_tile( $args ); ?> <h2 class="portfolio-category-title h2">SPORTS</h2> <?php /** raindrops_tile( ) * * * * */ $args = array(add to style.css below style rules
.portfolio-nav{ display:none; } /* add below */ #portfolio li{ width:23%; margin:1%; } .portfolio-category-title{ text-indent:1em; }Thank you
adminbar edit page click
edit page( text tab click)
Add content textarea below
<!--[raindrops color_type="dark" col="1"]-->and add to style.css last line below
.page-id-24641 .rsidebar, .page-id-24641 .lsidebar{ display:none!important; }need config .page-id-24641 ( 24641 is your page id )
Thank you.
The topic ‘Configurate’ is closed to new replies.
