• Resolved dutx12

    (@dutx12)


    Hello

    I need some help to configurate my blog.

    I need to see the post posted in 4 colunms

    Like This

    this is the actual aspect of my blog

    i have grid-post.php but i dont know how can configurate it.

    Regards

Viewing 15 replies - 1 through 15 (of 17 total)
  • Theme Author nobita

    (@nobita)

    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.

    Thread Starter dutx12

    (@dutx12)

    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

    Thread Starter dutx12

    (@dutx12)

    I think that I’m doing something wrong.

    I keep seeing the web as before the changes

    Theme Author nobita

    (@nobita)

    change filename from grid-post.php to test.php

    create page

    Page Attribute MetaBox Template select ‘test’

    submit

    Thread Starter dutx12

    (@dutx12)

    I have these categories

    “Sport”
    “National Press”

    what is the code to separate the magazines by “Categories”?

    sample

    Theme Author nobita

    (@nobita)

    function raindrops_tile() is using get_posts,

    The extraction conditions, please refer to the following
    http://codex.wordpress.org/Template_Tags/get_posts

    example

    $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
    			);

    Thread Starter dutx12

    (@dutx12)

    I put that code

    Sorry, doesnt works, The category are:
    Nationals: 4
    Sports: 3
    Computers: 7
    Revistas: 5

    I put 7 (Computers) But appears “All category”

    Capture

    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 );
    ?>
    Theme Author nobita

    (@nobita)

    'category' => '7'// Add Sport category ID( National Press ID)

    change below( add comma )

    'category' => '7', // Add Sport category ID( National Press ID)

    Thank you.

    Thread Starter dutx12

    (@dutx12)

    I dont know why, but the configuration dosent work 🙁

    http://todoprensa.hostinazo.com/

    Caputer

    mayby is the host “hostinazo.com”??

    Thread Starter dutx12

    (@dutx12)

    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

    Theme Author nobita

    (@nobita)

    <?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.

    Thread Starter dutx12

    (@dutx12)

    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: SPORTS

    Some space between each post, maybe 0,5 cm

    Example

    Theme Author nobita

    (@nobita)

    add h2 html element first raindrops_tile( $args ); after

    like 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

    Thread Starter dutx12

    (@dutx12)

    Yessssss¡¡¡ Great¡¡¡

    To move or delete the menus???

    image

    Theme Author nobita

    (@nobita)

    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.

Viewing 15 replies - 1 through 15 (of 17 total)

The topic ‘Configurate’ is closed to new replies.