Results 1 to 8 of 8
Like Tree1Likes
  • 1 Post By meloniq

Thread: How to Modify Dashboard posts per page 3.4

  1. #1
    Thread Starter
    Veteran weiching's Avatar
    Join Date
    Apr 2011
    Posts
    505
    Thanks
    85
    Thanked 43 Times in 38 Posts

    How to Modify Dashboard posts per page 3.4

    Hi,

    Advertise my user number is over 300, so I need to display more ads on a page.

    In 3.3.3, I modified tpl-dashboard.php

    Code:
    						<?php
    							// setup the pagination and query
    							$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
    							query_posts( array( 'posts_per_page' => 10, 'post_type' => APP_POST_TYPE, 'post_status' => 'publish, pending, draft', 'author' => $current_user->ID, 'paged' => $paged ) );
    
    							// build the row counter depending on what page we're on
    							if ( $paged == 1 ) $i = 0; else $i = $paged * 10 - 10;
    						?>
    to
    Code:
    						<?php
    							// setup the pagination and query
    							$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
    							query_posts( array( 'posts_per_page' => 50, 'post_type' => APP_POST_TYPE, 'post_status' => 'publish, pending, draft', 'author' => $current_user->ID, 'paged' => $paged ) );
    
    							// build the row counter depending on what page we're on
    							if ( $paged == 1 ) $i = 0; else $i = $paged * 50 - 50;
    						?>
    3.4 tpl-dashboard.php rewrite

    Can someone guide how to modify.

    Thank you.

  2. #2
    meloniq's Avatar
    Join Date
    May 2011
    Location
    Poland
    Posts
    1,079
    Thanks
    17
    Thanked 178 Times in 159 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    talent likes this.
    Have Clipper website?! --> You need coupons importer!!!
    See available integrations with affiliate networks: Commission Factory, CJ Affiliate, Daisycon, Rakuten LinkShare, ShareASale, Tradedoubler, TradeTracker

    Payment gateways: Bitpay, Dotpay, PayU PL, Przelewy24, Skrill

    me @ AT || meloniq.net

  3. The Following User Says Thank You to meloniq For This Useful Post:

    weiching (January 10th, 2015)

  4. #3
    Thread Starter
    Veteran weiching's Avatar
    Join Date
    Apr 2011
    Posts
    505
    Thanks
    85
    Thanked 43 Times in 38 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #4
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


  6. The Following User Says Thank You to talent For This Useful Post:

    weiching (January 10th, 2015)

  7. #5
    Thread Starter
    Veteran weiching's Avatar
    Join Date
    Apr 2011
    Posts
    505
    Thanks
    85
    Thanked 43 Times in 38 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #6
    meloniq's Avatar
    Join Date
    May 2011
    Location
    Poland
    Posts
    1,079
    Thanks
    17
    Thanked 178 Times in 159 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Have Clipper website?! --> You need coupons importer!!!
    See available integrations with affiliate networks: Commission Factory, CJ Affiliate, Daisycon, Rakuten LinkShare, ShareASale, Tradedoubler, TradeTracker

    Payment gateways: Bitpay, Dotpay, PayU PL, Przelewy24, Skrill

    me @ AT || meloniq.net

  9. #7
    Thread Starter
    Veteran weiching's Avatar
    Join Date
    Apr 2011
    Posts
    505
    Thanks
    85
    Thanked 43 Times in 38 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #8
    talent's Avatar
    Join Date
    Jul 2011
    Location
    London UK
    Posts
    3,497
    Thanks
    75
    Thanked 553 Times in 502 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    $function ('CUSTOMIZATION'); } else { .DESIGN { display: awesome; }
    If you require any additional functionality or design customization, just ask. Afterall... anything is possible! However, I may not know how to implement your particular request, but if you don't ask, you don't get

    If you build it, they will come...


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can customers modify the date of expire in their dashboard?
    By anto65 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: May 18th, 2013, 02:18 PM
  2. [MOD NEEDED] Modify users dashboard
    By pixel in forum ClassiPress General Discussion
    Replies: 0
    Last Post: March 15th, 2013, 09:25 AM
  3. Latest Posts page - adding extra text before posts
    By poemaderoca in forum Report Vantage Bugs (Legacy)
    Replies: 2
    Last Post: October 22nd, 2012, 06:44 PM
  4. How modify the wordpress dashboard layout?
    By lars in forum WordPress General Discussion
    Replies: 3
    Last Post: August 5th, 2011, 02:29 AM
  5. [SOLVED] User posts ad - their dashboard not updated
    By tklein in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: February 21st, 2011, 11:32 PM