Portfolio, more than one page ?

Writer, blogging theme for writers and authors | Support forum.
GK User
Fri Jan 02, 2015 1:32 pm
Hi guys,

no theme is perfect but until now I love WRITER.
I am using the Portfolio style as my default page to show my pictures.

In the settings under Frontage you can set the "number of articles".
At the moment I set it to 200.

Is there now a possibilty or maybe in the future to say "100 articles, then next page".
Like "older post" in other themes.

Thanks
Darius
User avatar
Fresh Boarder

GK User
Fri Jan 02, 2015 1:57 pm
Hi,

We'll consider this feature, I've tried to add infinity scroll support for the portfolio pages recently, but it's not simply and may cause conflict with other settings, but simple pagination may be a good idea.
User avatar
Moderator

GK User
Mon Jan 05, 2015 1:28 pm
Piotr Kunicki wrote:Hi,

We'll consider this feature, I've tried to add infinity scroll support for the portfolio pages recently, but it's not simply and may cause conflict with other settings, but simple pagination may be a good idea.


This would be great, Thanks.
User avatar
Fresh Boarder

GK User
Wed Jan 21, 2015 8:17 pm
I'm not sure if that solution will be added to the next theme version, because I don't have good idea how the pagination buttons should like to match the portfolio layout. Anyway, if you want to add the pagination, please replace your Writer/template.portfolio.php file with the attached file.

Now you should adjust pagination buttons a little, i.e. by adding the following css code into Writer/css/override.css file or using cusotm css plugin like: https://www.gavick.com/blog/adding-cust ... ress-theme

Code: Select all
.page-template-template-portfolio .navigation {
  margin: 6px 0 2px 0;
  text-align: left;
}
.page-template-template-portfolio .paging-navigation .nav-links {
display: block;
}
.page-template-template-portfolio .nav-previous {
float: left;
}
.page-template-template-portfolio .nav-next {
float: right;
}
User avatar
Moderator

GK User
Wed Jan 21, 2015 10:23 pm
Piotr Kunicki wrote:I'm not sure if that solution will be added to the next theme version, because I don't have good idea how the pagination buttons should like to match the portfolio layout. Anyway, if you want to add the pagination, please replace your Writer/template.portfolio.php file with the attached file.

Now you should adjust pagination buttons a little, i.e. by adding the following css code into Writer/css/override.css file or using cusotm css plugin like: https://www.gavick.com/blog/adding-cust ... ress-theme

Code: Select all
.page-template-template-portfolio .navigation {
  margin: 6px 0 2px 0;
  text-align: left;
}
.page-template-template-portfolio .paging-navigation .nav-links {
display: block;
}
.page-template-template-portfolio .nav-previous {
float: left;
}
.page-template-template-portfolio .nav-next {
float: right;
}



Hi Piotr,

thanks so much for the help.
It seems to work but there is a little problem.

I set the "number of articles" to 5.
Now I can see the "older/newer posts" buttons.

But every page is showing the same 5 pictures.
User avatar
Fresh Boarder

GK User
Thu Jan 22, 2015 10:26 am
I've tested it on my installation and works properly, could you send me a PM with backend and FTP access to your website?
User avatar
Moderator

GK User
Fri Jan 23, 2015 9:19 am
Small Update: When you are using the Portfolio as a static frontpage, please change this fragment:

Code: Select all
$args_global['paged'] = get_query_var( 'paged' )
    ? get_query_var( 'paged' )
    : 1;

into:
Code: Select all
$args_global['paged'] = get_query_var( 'page' )
    ? get_query_var( 'page' )
    : 1;
User avatar
Moderator

GK User
Thu Jan 29, 2015 9:55 am
Hi Piotr,

thanks again !!!
But do I have to do something anymore?
I saw you changed the portfolio.php

At the moment there is a pagination, but only in one direction -> older posts.
I can't get back to -> newer posts.

http://www.perfectmoment.de/wordpress_pm_dk/page/2/
User avatar
Fresh Boarder

GK User
Thu Jan 29, 2015 11:22 am
Hi,

It should be ok now.
I've accidentally commented out one line from template.portfolio.php file.
User avatar
Moderator


cron