Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Portfolio Pagination

Pagination Portfolio
    • 10 years, 4 months ago adamipswich
      Participant

      Expired

      Please can you tell me how to remove the portfolio pagination? It actually seems broken, page 2 does not load but I have tried updating permalinks. I feel the portfolio would work better if the pagination could be removed or increased to a larger number. Please can you let me know which file to edit to achieve this. Many thanks.

    • 10 years, 4 months ago Ruco
      Keymaster

      Hello,

      You can do this with some customization.
      Please edit the file \specular\includes\core\codeless_routing.php and find the lines:

       function codeless_set_portfolio_query()
      	{
      		global $cl_redata;
      		
      		$terms = $cl_redata['portfolio_categories'];
      
      		$p_per_page = 6;
      		switch($cl_redata['portfolio_columns']){
      			case '1':
      				$p_per_page = 3;
      			    break;
      			case '2':
      				$p_per_page = 8;
      				break;
      			case '3':
      				$p_per_page = 9;
      				break;
      			case '4':
      				$p_per_page = 12;
      				break;
      			case '5':
      				$p_per_page = 10;
      				break;
      		}

      Replace it with:

       function codeless_set_portfolio_query()
      	{
      		global $cl_redata;
      		
      		$terms = $cl_redata['portfolio_categories'];
      
      		$p_per_page = 6;
      		switch($cl_redata['portfolio_columns']){
      			case '1':
      				$p_per_page = 999;
      			    break;
      			case '2':
      				$p_per_page = 999;
      				break;
      			case '3':
      				$p_per_page = 999;
      				break;
      			case '4':
      				$p_per_page = 999;
      				break;
      			case '5':
      				$p_per_page = 999;
      				break;
      		}

      Best regards!

    • 10 years, 4 months ago adamipswich
      Participant

      Expired

      Many thanks, this works very well :)

    • 9 years, 5 months ago bpardini
      Participant

      Expired

      Portfolio pagination does not work. I get a 404 error instead of page 2. I’ve tried all solutions on this forum and the knowledge base – none work. Please help with an easy straight-forward solution.

    • 9 years, 5 months ago Mirela
      Participant

      Hello,


      @bpardini
      ,
      Portfolio pagination does not have any issue on our side. Send us your portfolio page’s url so we can give it a closer look.

      Best regards!

Viewing 4 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password