Tagged: P2 Toggle Comment Threads | Keyboard Shortcuts

  • Jay Versluis 9:47 am on October 8, 2013 Permalink | Reply
    Tags: P2   

    Categories: Themes ( 28 )   

    How to add drop down categories to Automattic’s P2 Theme 

    You know I love P2. I always have, and I always will. It’s the perfect theme that turns my WordPress installation into a notebook site.

    Many users – me included – have often wished for the addition of categories to P2, so that when you write a post, you can add it to the category from the front page, perhaps via a convenient drop down menu.

    Here’s how to do it with P2 Version 1.5.1.

    And if you don’t want to hack the code yourself, I’ve got a full working project on GitHub that’s ready to rock.

    (More …)





     
    • Jay Versluis 5:54 pm on November 22, 2013 Permalink | Reply

      I forgot to mention:
      To make those categories show up inside posts (like tags to by default), examine the entry.php file in my project. This is where we display those categories.

  • Jay Versluis 3:09 pm on October 6, 2013 Permalink | Reply
    Tags: P2,   

    Categories: Plugins ( 19 )   

    Introducing The P2 Header Ad Plugin 

    P2 Header Ad IconI always loved Automattic’s P2 theme: it’s one of the most innovative ideas for blogging I could find. I’m using it on several of my notebook websites, including this one. I’ve been tweaking P2 for quite some time, and one thing I wanted to do is display an advert inside the P2 header.

    As you may know, P2 doesn’t like child themes very much, so I wrote a future proof solution as this handy plugin.

    P2 Header Ad let’s you display an advert of your choice inside the header. And when the theme is updated, your advert stays in place. Neat, huh?

    (More …)





     
  • Jay Versluis 11:20 am on February 20, 2013 Permalink | Reply
    Tags: P2   

    Categories: Themes ( 28 )   

    How to style the Add Media button in P2 

    Screen Shot 2013-02-20 at 11.08.52

    Before…

    I’ve noticed that the Add Media button in P2 version 1.4.2 is a bit too low when you write a Blog Post.

    The button usually sits neatly above the status box, however it cuts into the top of the box due to the additional text field for the blog post – like so:

    It’s not so pretty. As a quick fix we can shift it a few pixels higher, therefore it won’t interfere with the box anymore:

    /* The Add Media button is too low when a blog post is selected */
    #media-buttons {top: -2px;}

     

    Add it to the bottom of your style.css sheet and you’re golden!

    ... and after the fix

    … and after the fix





     
    • Scophi 9:37 pm on February 25, 2013 Permalink | Reply

      I found your P2 User Guide website and am glad that this theme is still active and being developed. I enjoyed reading about what you can do with lists. Very impressive.

      I wanted to let you know that I have a P2 site that I have modified heavily. I have re-organized and simplified the stylesheet, corrected some postbox problems, and made a few other tweaks. I’d be honored if you took a look.

      http://www.scophi.com

      I would not mind if you used any of my tips or tricks in either of your blogs. I don’t need credit. I just want to share what I have learned about P2.

      Thanks!

      • Scophi 9:39 pm on February 25, 2013 Permalink | Reply

        Sorry, I forgot to mention that my list of modifications is a page, not a post, called P2 Theme Modifications. Here’s the link:

        http://www.scophi.com/?page_id=206

        • Jay Versluis 11:38 am on February 26, 2013 Permalink | Reply

          Thank you Scophi, always good to meet a fellow P2 lover 😉 I’ll add your link it to the P2 User Guide!

          • Scophi 7:54 am on March 15, 2013 Permalink

            Jay-

            I have changed my website and no longer use P2. But I did update my P2 modifications page and wanted to give you the updated link so you could correct the reference links here and on P2 User Guide.

            Scophi’s P2 Theme Modifications: http://scophi.com/archives/8

            Thanks!

          • Jay Versluis 10:14 am on March 15, 2013 Permalink

            Thanks for the heads up, very kind of you. I’ve updated the P2 User Guide with your new link.

    • Jay Versluis 11:24 am on May 8, 2013 Permalink | Reply

      UPDATE:
      A new version of P2 has been released (1.4.3) which addresses several improvements under the hood. Sadly they haven’t fixed the above graphical problem, but I’ve just checked – my tweak still works with version 1.4.3.

      See the new improvements in the P2 User Guide before they disappear from the front page of p2theme.com:
      http://p2guide.wordpress.com/2013/05/08/p2-version-1-4-3-released/

  • Jay Versluis 10:24 am on April 16, 2012 Permalink | Reply
    Tags: P2   

    Categories: Themes ( 28 ), WordPress ( 145 )   

    How to bring back Post Categories in P2 

    We’re all excited about the new features in Automattic’s P2 Theme v1.4.0 – however many of us have setup custom tweaks around Post Categories. In the latest version these have been replaced with Post Formats.

    Post Formats are great, but they are limited to values defined in the WordPress core. If you wanted to create a new post menu like “critical” or “alarm” this wouldn’t work. We could use Custom Post Types to add to those formats, however it’s way too big an operation for I wanted to achieve: which is bringing back the “posting into categories” feature we’ve come to love from the previous version.

    In this article I’ll show you how to back-port categories so posts will appear as they did in P2 v1.3.3 while retaining all functions of the latest update.

    (More …)





     
    • Ali 3:19 am on May 6, 2013 Permalink | Reply


      <a id="thoughts" class="post-format-button"class="selected" href="" title="">
      <a id="culture" class="post-format-button" class="selected" href="" title="">
      <a id="news" class="post-format-button"class="selected" href="" title="">

    • HG 7:14 pm on July 27, 2013 Permalink | Reply

      Hello, this hack works in P2 version 1.5.1 ?

    • Chris Bell 11:11 pm on September 22, 2013 Permalink | Reply

      What I’d like to be able to do is assign all of the P2 posts into an existing custom post type, e.g. Status Updates.

      I’m integrating P2 with a parent theme, so I’m hacking the theme as best I can.

      • Jay Versluis 9:50 am on September 23, 2013 Permalink | Reply

        Hi Chris,

        the answer lies in a file called post-form.php. This generates the buttons above the post box and sets the post type for each button. Look for an unordered list towards the top of the file and change them to your desired format.

        One thing about P2 child themes: they don’t seem to work properly, I’m not sure why. I’ve noticed that some modifications you make in your child theme don’t make it into the final output.

        • Chris Bell 3:59 pm on September 23, 2013 Permalink | Reply

          Hi Jay,

          My oversight: I accomplished posting to a special post_type by adding a hidden post_type input field.

          Now if only I could get the p2_load_entry to work correctly. 🙂

  • Jay Versluis 6:49 pm on April 10, 2012 Permalink | Reply
    Tags: P2   

    Categories: WordPress ( 145 )   

    P2 Theme gets an upgrade: say hello to Custom Menus and To-Do List Support 

    Today P2 Version 1.4.0 has been released – hurra! Thanks for everyone’s hard work on this amazing theme.

    P2 now boasts a couple of extra options and plenty of changes under the hood, but like many other great features those are not immediately obvious. Let me show you how the new changes work and how they can make your P2 experience even better.

    (More …)





     
    • ray 11:21 pm on April 26, 2012 Permalink | Reply

      sorry, got it sorted out. Had to do a remove_filter on P2 and then add_filter on the child theme…
      Ray

      • Jay Versluis 3:58 pm on April 28, 2012 Permalink | Reply

        Excellent, glad to hear it. I know P2 is not a child friendly theme, great idea to re-do that hook, maybe that’ll solve my problem too.

    • David 8:50 pm on May 27, 2012 Permalink | Reply

      great info. thanks…
      btw. i think it’s not custom post type, it’s post format.

      • Jay Versluis 9:53 pm on May 27, 2012 Permalink | Reply

        Thanks David,

        I’ve been meaning to update this a while back – I’ve just done it now. I’m trying to compile a P2 User Guide at http://p2guide.wordpress.com – have a look, it’s work in the early beta stages though. If you have any suggestions please let me know.

    • Tom Wong 3:42 am on July 12, 2012 Permalink | Reply

      Hi,

      I am using P2 version 1.4 and I do not have any capability to do custom menus or to-do lists. Were these features eliminated from version 1.4? Thanks.

      • Jay Versluis 8:46 am on July 12, 2012 Permalink | Reply

        Hi Tom, both those features were introduced in version 1.4 so they should be at your disposal.

        Setting up menus is a two part process which is sometimes overlooked: first you create a menu (under Appearance – Menus). give it a name of your choice, you can have several. Then you have to activate it at the top left by choosing it from the drop down menu.

        To-do lists are a bit hidden: all you do is begin a new line with an x or an o, once you hit save this will be translated into working tick boxes.

        Hope this helps!

        • dave adams 7:40 pm on November 14, 2012 Permalink | Reply

          The todo list is still not working for me. I am using 1.4.2

          I also tried going through the dashboard and creating a new post. Still not working.

          • Jay Versluis 1:44 pm on November 18, 2012 Permalink

            What’s happening for you, is it just showing the o and x at the front of the line, like so?

            Because this in P2 should just convert into tickboxes.

  • Jay Versluis 5:50 pm on March 24, 2012 Permalink | Reply
    Tags: P2   

    Categories: Themes ( 28 ), WordPress ( 145 )   

    How to tweak P2: adding and replacing categories 

    Today I’m going to tweak the marvellous P2 Theme by Automattic.

    P2 is one of my all time favourite themes – not only because it transforms WordPress into something completely different, but also because it’s an innovative way we communicate internally here at WP Hosting. If you don’t know P2 yet, do check it out at p2theme.com and watch the video.

    At the time of writing P2 is at Version 1.3.3 and has been since November last year. Code changes quickly, so by the time you’re reading this my ramblings may be out of date.

    Let’s have a look at how we can add and amend the default categories (i.e. Status Update, Blog Post, Quote and Link).

    (More …)





     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel