this is obsolete doc -- see http://doc.nethence.com/ instead

Wordpress developement 

 

http://pbraun.nethence.com/doc/www/wordpress.html 

http://pbraun.nethence.com/doc/lang/wordpressdev.html 

 

Introduction 

Once you got your website/blog and template in place : 

- check menu order 

- check permalinks are working 

- change header logo (see template guides) 

- check the email system is working 

 

Disable comments 

To disable comments entirely, remove this from your template, 

<?php comments_template(); ?>

 

Posts order 

Note. try adding spaces before the titles. More spaces = higher up. 

 

Otherwise if you want to force the posts' order, you can use the articles' custom fields, 

  Articles > Modifier > nom_de_l_article > Champs personnalisés > Nom : sort 

  Articles > Modifier > nom_de_l_article > Champs personnalisés > Valeur : 1 

note. value 1, then 2, 3, ... 

 

And change the query to use those custom fields, 

Apparence > Editeur > index.php

this is the default query and loop, 

<?php query_posts($query_string . "&order=ASC"); ?>
<?php $i = 1; if (have_posts()) : while (have_posts()) : the_post(); ?>

note. just html-commenting it won't do (php gets executed even so) 

change it to, 

<?php query_posts($query_string . "&meta_key=sort&orderby=meta_value&order=ASC"); ?>
<?php $i = 1; if (have_posts()) : while (have_posts()) : the_post(); ?>

Ref. http://codex.wordpress.org/Template_Tags/query_posts 

 

Refs. 

http://wordpress.org/support/topic/16746 

http://wordpress.org/support/topic/28703 

 

Miscellaneous 

Login/Logout, 

<?php wp_loginout(); ?>

 

Misc, 

<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
<?php wp_list_pages('title_li=&sort_column=menu_order'); ?>

 

Contact form 

Install and enable the Contact Form 7 plugin (http://wordpress.org/extend/plugins/contact-form-7/). Then as WP admin, go to the Contact menu (at the bottom of the left panel) and change, 

<table cellpadding="0" cellspacing="0">
 <tr>
  <td style="text-align:right;padding-right:10px;white-space:nowrap;">Firstname, Name</td>
  <td>[text* your-name]</td>
 </tr>
 <tr>
  <td style="text-align:right;padding-right:10px;">Email</td>
  <td>[email* your-email]</td>
 <tr>
  <td style="text-align:right;padding-right:10px;vertical-align:top;">Message</td>
  <td>[textarea your-message]</td>
 </tr>
 <tr>
  <td colspan="2" style="text-align:center;">[submit "Send"]</td>
 </tr>
</table>

Note. we intentionally ommit '[text your-subject]' 

Note. the '*' after text or textarea means the field is mandatory 

 

Or in French, 

<table cellpadding="0" cellspacing="0">
 <tr>

<td style="text-align:right;padding-right:10px;white-space:nowrap;">Prénom Nom</td> 

  <td>[text* your-name]</td>
 </tr>
 <tr>
  <td style="text-align:right;padding-right:10px;">Email</td>
  <td>[email* your-email]</td>
 <tr>
  <td style="text-align:right;padding-right:10px;vertical-align:top;">Message</td>
  <td>[textarea your-message]</td>
 </tr>
 <tr>
  <td colspan="2" style="text-align:center;">[submit "Envoyer"]</td>
 </tr>
</table>

 

If you ommit your-subject as we did, also change the resulting email by removing this from the message body, 

Subject: [your-subject]

and change the defautl subject to something explicit. 

 

Note. the style of the Contact Form 7 is depended on your Theme. You may eventually have to dig a little big (or a lot) to fix the input fields vs textarea. For example, 

cd path/to/website/wp-content/themes/theme
vi style.css

e.g. change, 

#left_col textarea {
  margin:5px;
  padding:5px;
  border:1px solid #d6d1c4;
  }

 

#left_col input {
  margin:5px;
  padding:5px;
  border:1px solid #d6d1c4;
  }

 

Video insertion 

(FR) Insérez des vidéos en gardant un code valide : http://www.lejournaldublog.com/inserez-des-videos-en-gardant-un-code-valide/ 

(FR) Interactive Video : des vidéos sur votre blog Wordpress : http://www.lejournaldublog.com/interactive-video-des-videos-sur-votre-blog-wordpress/ 

 

Outside Wordpress 

(FR) WordPress – Comment Afficher Les Derniers Articles Hors WordPress en PHP : http://www.jenyburn.com/home/wordpress-comment-afficher-les-derniers-articles-hors-wordpress-en-php/ 

(FR) WordPress – Comment Afficher Les Derniers Articles : http://www.jenyburn.com/home/wordpress-comment-afficher-les-derniers-articles/ 

 

References 

Weblog tools : http://weblogtoolscollection.com/ 

WordPress Planet : http://planet.wordpress.org/ 

http://codex.wordpress.org/Template_Tags 

http://codex.wordpress.org/Template_Tags/get_posts 

http://codex.wordpress.org/Template_Tags/wp_list_bookmarks 

http://codex.wordpress.org/Category_Templates 

http://codex.wordpress.org/fr:Marqueurs_de_Modele/wp_list_cats