[wp-hackers] I need to find a site that uses Post Formats

Simon Fairbairn simon at line-in.co.uk
Thu Mar 24 17:56:01 UTC 2011


I'm using it on our travel site: http://www.neverendingvoyage.com. All 
posts marked with the Video post format go to a 'theatre' instead of the 
regular Single post page.

Compare this 
http://www.neverendingvoyage.com/the-secret-life-of-a-nomadic-web-designer/ 
to any other post on the site and you'll see the different layouts.

Not sure if this is what was originally intended for this particular 
functionality, though!

*Simon Fairbairn*
*Line In Web Design*
Line-In.co.uk <http://line-in.co.uk>
Follow me on Twitter: @LineInWebDesign <http://twitter.com/LineInWebDesign>
Catch me on Facebook 
<http://www.facebook.com/pages/LineInWebDesign/113146248728979>

On 24/03/2011 10:41, wp-hackers-request at lists.automattic.com wrote:
> Send wp-hackers mailing list submissions to
> 	wp-hackers at lists.automattic.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.automattic.com/mailman/listinfo/wp-hackers
> or, via email, send a message with subject or body 'help' to
> 	wp-hackers-request at lists.automattic.com
>
> You can reach the person managing the list at
> 	wp-hackers-owner at lists.automattic.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of wp-hackers digest..."
>
>
> Today's Topics:
>
>     1. Plugin developer "toolbox" (Chris Taylor - stillbreathing.co.uk)
>     2. query_posts with taxonomy (Rafael Ehlers)
>     3. Re: query_posts with taxonomy (Moln?r M?rton)
>     4. Re: query_posts with taxonomy (Rafael Ehlers)
>     5. Re: Plugin developer "toolbox" (Michael Van Winkle)
>     6. Re: Plugin developer "toolbox" (Brian Layman)
>     7. I need to find a site that uses Post Formats (Brian Layman)
>     8. Re: I need to find a site that uses Post Formats (Chip Bennett)
>     9. Re: I need to find a site that uses Post Formats (Nathan Rice)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 24 Mar 2011 13:49:02 +0000
> From: "Chris Taylor - stillbreathing.co.uk"<mrwiblog at gmail.com>
> Subject: [wp-hackers] Plugin developer "toolbox"
> To: wp-hackers at lists.automattic.com
> Message-ID:
> 	<AANLkTi=UMxzQNWr6XoAB5A4sLuaJNorx2y66dV-KHF_m at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi all,
>
> I've just started on a new plugin called WP IDE which will provide
> option for creating plugins within WordPress using a
> syntax-highlighted editor, and other features associated with desktop
> IDEs. The IDE will contain a form to generate the basic code for a
> general-purpose plugin, including creating classes with custom
> database tables and all the CRUD code, empty admin screens etc. As
> part of that development I'm creating a "toolbox" of classes that will
> help me to create plugins more easily. So far I've started work on:
>
> 1) A FormBuilder class: allows you to create forms with fieldsets and
> form elements, then generate the HTML for those. This class will also
> handle HTML5 form elements, and will warn about non-standard
> attributes. [1]
>
> 2) A Pagination class: allows you to paginate items
>
> 3) A DataTable class: allows you to create tables of data easily [2]
>
> 4) A PluginOptions class: allows you to save options for a plugin
> easily, enforcing rules about the data saved
>
> I have a few questions. Firstly is there anything like this already
> available. Secondly, while I'll no doubt think of other "tools" that
> will make my plugin development easier in the future, what could you
> add to this list? Thirdly, do any of you have other methods, code
> libraries etc to help you stop writing boilerplate code?
>
> WordPress provides a lot of functions to make a lot of writing a
> plugin easier (user management, database access etc) but a set of
> classes like this may be useful to many of us.
>
> regards,
>
> Chris
>
> [1] Some example code:
>
> $form = new FormBuilder("myform");
> $fieldset1 = new FormGroup("fieldset1", "cssclass1");
> $username = new FormItem("text", "username", "Enter your username");
> $fieldset1->addItem($username);
> $fieldset2 = new FormGroup("fieldset2", "cssclass2");
> $password = new FormItem("password", "password", "Enter your password");
> $fieldset2->addItem($password);
> $form->addGroup($fieldset1);
> $form->addGroup($fieldset2);
> $form->paged = true;
> echo $form->getHTML();
>
> [2] I did something like this a long while ago:
> http://www.stillbreathing.co.uk/experiments/datatable/
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 24 Mar 2011 11:38:59 -0300
> From: Rafael Ehlers<rafaehlers at gmail.com>
> Subject: [wp-hackers] query_posts with taxonomy
> To: wp-hackers at lists.automattic.com
> Message-ID:
> 	<AANLkTikv8VALv0mQzBin6JXetROKmSU7PA-uJD4RwgjS at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> What Im doing wrong here?
>
> I have 1 product in two taxonomies ->  Clothing and Featured
>
> my query is:
>
> query_posts(array('post_type'=>  'produtcs','posts_per_page' =>
> '3','tax_query' =>  array(array('relation' =>  'IN','taxonomy' =>
> 'categories','field' =>  'slug','terms' =>  'featured')) ));
>
> Someone help me please, that product isnt showing up!
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 24 Mar 2011 15:47:14 +0100
> From: Moln?r M?rton<molnar.marton at gmail.com>
> Subject: Re: [wp-hackers] query_posts with taxonomy
> To: wp-hackers at lists.automattic.com
> Message-ID:
> 	<AANLkTin1yNXufYRxF0JDacWNYiRn-KM5sbP8p4FVf_xV at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi! There's a typo in your code:
> *'post_type'=>  'produtcs'*
> should be 'products'.
>
> On Thu, Mar 24, 2011 at 3:38 PM, Rafael Ehlers<rafaehlers at gmail.com>  wrote:
>
>> What Im doing wrong here?
>>
>> I have 1 product in two taxonomies ->  Clothing and Featured
>>
>> my query is:
>>
>> query_posts(array('post_type'=>  'produtcs','posts_per_page' =>
>> '3','tax_query' =>  array(array('relation' =>  'IN','taxonomy' =>
>> 'categories','field' =>  'slug','terms' =>  'featured')) ));
>>
>> Someone help me please, that product isnt showing up!
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
> M.
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 24 Mar 2011 11:54:35 -0300
> From: Rafael Ehlers<rafaehlers at gmail.com>
> Subject: Re: [wp-hackers] query_posts with taxonomy
> To: wp-hackers at lists.automattic.com
> Message-ID:
> 	<AANLkTimHWJ2GAT10td=qk1PeOPwrbTgP7sMym1QM_FRG at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Wow!
>
> Thanks man! Banging my head for hours on this, read Codex, Google, anything
> and nothing working, damn!
>
> Best regards,
>
> On Thu, Mar 24, 2011 at 11:47 AM, Moln?r M?rton<molnar.marton at gmail.com>wrote:
>
>> Hi! There's a typo in your code:
>> *'post_type'=>  'produtcs'*
>> should be 'products'.
>>
>> On Thu, Mar 24, 2011 at 3:38 PM, Rafael Ehlers<rafaehlers at gmail.com>
>> wrote:
>>
>>> What Im doing wrong here?
>>>
>>> I have 1 product in two taxonomies ->  Clothing and Featured
>>>
>>> my query is:
>>>
>>> query_posts(array('post_type'=>  'produtcs','posts_per_page' =>
>>> '3','tax_query' =>  array(array('relation' =>  'IN','taxonomy' =>
>>> 'categories','field' =>  'slug','terms' =>  'featured')) ));
>>>
>>> Someone help me please, that product isnt showing up!
>>> _______________________________________________
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>>
>> M.
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 24 Mar 2011 10:55:17 -0400
> From: Michael Van Winkle<mike at mikevanwinkle.com>
> Subject: Re: [wp-hackers] Plugin developer "toolbox"
> To: wp-hackers at lists.automattic.com
> Message-ID:
> 	<AANLkTinh=1Q92CZQBsz+AUw8URj79tk=3auhGgFrzEM+ at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Chris, just FYI, you might take a look at PodsCMS. It's a framework that
> does a lot of this already. http://www.podscms.org/
>
> And the WPDB handles most table interaction fairly well. Though I don't
> believe there's a method for creating / dumping tables.
>
> Also, I think Scribu has a set of tools but I haven't used it.
>
> Mike
>
> On Thu, Mar 24, 2011 at 9:49 AM, Chris Taylor - stillbreathing.co.uk<
> mrwiblog at gmail.com>  wrote:
>
>> Hi all,
>>
>> I've just started on a new plugin called WP IDE which will provide
>> option for creating plugins within WordPress using a
>> syntax-highlighted editor, and other features associated with desktop
>> IDEs. The IDE will contain a form to generate the basic code for a
>> general-purpose plugin, including creating classes with custom
>> database tables and all the CRUD code, empty admin screens etc. As
>> part of that development I'm creating a "toolbox" of classes that will
>> help me to create plugins more easily. So far I've started work on:
>>
>> 1) A FormBuilder class: allows you to create forms with fieldsets and
>> form elements, then generate the HTML for those. This class will also
>> handle HTML5 form elements, and will warn about non-standard
>> attributes. [1]
>>
>> 2) A Pagination class: allows you to paginate items
>>
>> 3) A DataTable class: allows you to create tables of data easily [2]
>>
>> 4) A PluginOptions class: allows you to save options for a plugin
>> easily, enforcing rules about the data saved
>>
>> I have a few questions. Firstly is there anything like this already
>> available. Secondly, while I'll no doubt think of other "tools" that
>> will make my plugin development easier in the future, what could you
>> add to this list? Thirdly, do any of you have other methods, code
>> libraries etc to help you stop writing boilerplate code?
>>
>> WordPress provides a lot of functions to make a lot of writing a
>> plugin easier (user management, database access etc) but a set of
>> classes like this may be useful to many of us.
>>
>> regards,
>>
>> Chris
>>
>> [1] Some example code:
>>
>> $form = new FormBuilder("myform");
>> $fieldset1 = new FormGroup("fieldset1", "cssclass1");
>> $username = new FormItem("text", "username", "Enter your username");
>> $fieldset1->addItem($username);
>> $fieldset2 = new FormGroup("fieldset2", "cssclass2");
>> $password = new FormItem("password", "password", "Enter your password");
>> $fieldset2->addItem($password);
>> $form->addGroup($fieldset1);
>> $form->addGroup($fieldset2);
>> $form->paged = true;
>> echo $form->getHTML();
>>
>> [2] I did something like this a long while ago:
>> http://www.stillbreathing.co.uk/experiments/datatable/
>> _______________________________________________
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>> http://lists.automattic.com/mailman/listinfo/wp-hackers
>>
>
>


More information about the wp-hackers mailing list