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

Specular – Projects displayed without pagination

category filtersPaginationportfolio
    • 10 years ago krekasen
      Participant

      Expired

      How to display all the projects in a page without pagination, so when changing the category, all the projects in the category will display. As I have been advised that this is how portfolio category filter works, and there is a possibility to fix it.

    • 10 years ago Mirela
      Participant

      Hello,

      Please edit the file ‘specular/includes/core/codeless_routing.php.
      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 = 6;
      				break;
      			case '3':
      				$p_per_page = 9;
      				break;
      			case '4':
      				$p_per_page = 12;
      				break;
      			case '5':
      				$p_per_page = 10;
      				break;
      		}

      and replace 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!

      • This reply was modified 10 years ago by Ruco.
Viewing 1 reply thread

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