Jump to content

Archived

This topic is now archived and is closed to further replies.

Jean-Philippe

PageLines Postpins Section Update?

Recommended Posts

Jean-Philippe    2
Jean-Philippe

Hi everyone,

 

I was wondering if you guys are planning to release an update for Postpin paid section?

 

This paid section is really awesome and I recommend people to buy it but it seems we users still need to replace the current code with this piece of code (given by Simon) in order to display correctly blog posts according to categories, tags, authors and search templates.

 

So my question is: is it possible to include the code above into the next Postpin section release please?

 

Moreover, can I also ask to:

  • implement some piece of code to display blog posts correctly according to Archive Template (doesn't work currently)
  • add a box to set the number of words to display within the pins if people prefer to use WordPress excerpts

Thank you very much for your attention.

Cheers,

 

Jean-Philippe


www.photoreview.fr | www.kankei.fr

Share this post


Link to post
Share on other sites
greenfly    230
greenfly

I have moved this topic into the Post pins Product Support forum 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites
Simon    247
Simon

Please test this.

Share this post


Link to post
Share on other sites
Jean-Philippe    2
Jean-Philippe

Hello Simon,

 

Once again, thank you very much for the quick answer and this new PHP code.

 

I tested it on my own website and it's almost perfect:

  • category template : ok
  • tag template : ok
  • search template : ok
  • author template : ok
  • new "Number of words to load" box : ok
  • archive template : it seems there is something wrong with filtering blog posts following dates.
    If I ask for example to display blog posts published on June 5th 2013 [http://www.photoreview.fr/2013/06/05], Postpin section will display blog posts published on this day + blog posts published on May 5th + April 5th + March 5th + February 5th, etc.
    If I ask to display blog posts published on January 2013 [http://www.photoreview.fr/2013/01], Postpin section will display blog posts published on January 2013 + January 2012, etc.
    I wasn't able to test it with just filtering by year because in this case I have too much blog posts to display!

Hope it can help you a little Simon.

Thank you!

 

Jean-Philippe


www.photoreview.fr | www.kankei.fr

Share this post


Link to post
Share on other sites
Jean-Philippe    2
Jean-Philippe

Hi,

 

Ok, just tested it on one of my own websites.

  • category template : ok
  • tag template : ok
  • search template : ok
  • author template : ok
  • new "number of words to load" box : ok

 

 

Hope I can help a little.

Thank you Simon!

 

Jean-Philippe


www.photoreview.fr | www.kankei.fr

Share this post


Link to post
Share on other sites
Jean-Philippe    2
Jean-Philippe

Just found the little bug to fix in order to display well blog posts filtered by a specific day:

 

Line 253-254, replace:

if( is_archive() && is_day() )
$query['day'] = $wp_query->query_vars['day'];

By:

if( is_archive() && is_day() ) {
$query['day'] = $wp_query->query_vars['day'];
$query['monthnum'] = $wp_query->query_vars['monthnum'];
$query['year'] = $wp_query->query_vars['year'];
}

Et voilà !


www.photoreview.fr | www.kankei.fr

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Jean-Philippe

 

Thank you for posting your fix, this will help other users in future looking to make this customization.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Jean-Philippe    2
Jean-Philippe

You're welcome :)

I wanted to add one more thing: the piece of PHP code given above http://paste.pagelines.com/6ia works well with Postpins DMS.


www.photoreview.fr | www.kankei.fr

Share this post


Link to post
Share on other sites

  • Similar Content

    • Jean-Philippe
      By Jean-Philippe
      Hi,
       
      Since I updated my websites to WordPress 3.9, I have an issue with PostPins.
      As you can see here, the pins are not displayed well.
       
      Is it the same issue with PostPins DMS with WordPress 3.9?
       
      Any fix for this?
       
      Thanks,
       
      Jean-Philippe
    • rmaxsg
      By rmaxsg
      Hi,
       I just download postpin plugin, No sure there is a problem or simply i don't know how to use.  
       
      I active the postpin plugin, But it didn't show up anywhere, i check the Section Area and Global tab.  No sure has anyone came across with this issue? I no sure where i do wrong, please  assist me!!
       
      Thank you!
       
      Plugin Active
       
      Section Area
       
       
    • Jean-Philippe
      By Jean-Philippe
      Hi,
      I updated this section and now my different categories pages display all posts, not only the posts assigned to a specific category (as before).
      Could you please fix it?
       
      My website : Photoreview
       
      Thank you in advance for your answer.
      Jean-Philippe
    • Jean-Philippe
      By Jean-Philippe
      Hi,

      Here are some ideas to improve this great premium section:
      possibility to exclude one (or some) categorie(s)
      possibility to use WP excerpts
      compatible with WP author page
      compatible with WP search page

      Really hope to see these missing features in the next update!
      Thank you for your great work!

      Jean-Philippe
    • Jean-Philippe
      By Jean-Philippe
      Hello there!

      I would like to exclude posts from a specific category on my homepage running Postpin section.
      How can I do that ? Maybe I can use a specific WP plugin ?

      Thank you for you help!

      Jean-Philippe
×