Host Unlimited Web Sites for Only $10 per Month! Web ospitante illimitati siti per soli $ 10 al mese!
Powered by MaxBlogPress Powered by MaxBlogPress

Wordpress NOVITA # 14: 12 Modi per Hack La tua Home Page | JTPRATT del blogging Errori
JTPratt del blogging errori





Home Home page » Wordpress Hack #14: 12 Ways to Hack Your Home Page »Wordpress Hack # 14: 12 Modi per Hack La tua Home Page



Posted in: Posted in:

blog-setup categoria immaginewordpress categoria immagine
2,194 views 2194 opinioni


Please note: This page was originally written in English. Attenzione: Questa pagina è stata originariamente scritto in inglese.

The original post can be viewed Il post originale può essere visualizzato here qui .

Please note: This page was originally written in English.

The text has been translated using an online service such as Google or Babelfish.

The original post can be viewed here.


To have a unique Wordpress blog home page you don’t have to create your own theme. Per avere un unico blog Wordpress home page non è necessario creare il proprio tema. I’ll show you 12 ways to hack your homepage without getting a new theme that will make your blog stand out from the pack! Vi mostrerò 12 modi per hack tua home page senza ottenere un nuovo tema che renderà il vostro blog di distinguersi dalla confezione!

This is installment #14 of Questo è rata # 14 di 30 Wordpress Hacks in 30 Days 30 Hacks Wordpress in 30 giorni , be sure to sign up to our RSS feed or email updates at top right of this page!W , Assicuratevi di iscriversi al nostro feed RSS o via e-mail gli aggiornamenti in alto a destra di questa pagina! W

Everyone wants their blog to be different. Tutti vogliono il loro blog per essere diversa. You want it to be unique, to stand out, while remain easy to present what it is your blog is about. Volete che sia unico, a stare fuori, mentre restano facile a presentare quello che è il tuo blog è di circa. The same old “rolling list of posts” and obigatory sidebar can get (real) old after awhile. Lo stesso vecchio "rotolamento elenco dei posti" e obigatory barra laterale può ottenere (reale) dopo un po 'vecchio. Out of the box, everybody’s Wordpress blog looks the same, and getting a custom theme is the first stab at breaking out of that box. , Fuori dalla scatola, tutti Wordpress blog sembra la stessa, e ottenere un tema personalizzato è la prima pugnalata alla rottura di tale casella. The next step (before creating your own theme from scratch) is hacking that theme up a bit to get more of what you want out of it. Il passo successivo (prima di creare il proprio tema da zero) è l'hacking che tema un po 'fino a ottenere più di quello che volete su di essa. While some of the techniques I’m about to show you can be used on nearly any page in your Wordpress blog, the focus of this article is “ ways you can hack your Wordpress home page! Mentre alcune delle tecniche Sto per visualizzare può essere utilizzato su quasi tutte le pagine del suo blog Wordpress, la messa a fuoco di questo articolo è "modi in cui puoi hack tua home page di Wordpress!"

*All the plugins mentioned on this page are * Tutti i plugin di cui in questa pagina sono listed on the Wordpress 2.5 Compatibility list* quotate in Wordpress 2.5 Compatibilità elenco *

1. 1. Organize posts in 2 Side by Side Columns : Maybe you are tired of that one-column of content on your homepage, and you want more of a magazine or newspaper layout approach. Organizzare in 2 posti fianco a fianco Colonne: Forse siete stanchi di quella colonna di contenuto nella tua home page, e si desidera più di una rivista o giornale layout di approccio. If so, breaking up your posts into 2 side by side columns of content could be good for you. In caso affermativo, le divisioni tuoi post in 2 fianco a fianco colonne di contenuti potrebbe essere buona per voi. I can’t take credit for this hack, it’s well explained, including where to put the code and which files to edit - over on the Non riesco a prendersi il merito per questo hack, è ben spiegato, compresi i casi in cui per mettere il codice e che i file da modificare - oltre il Crea8 Design Blog: Side by Side Wordpress Columns Crea8 design blog: fianco a fianco wordpress colonne .

2. 2. Create Custom Comment Counts : Here’sa hack that I desperately tried to figure out for months and months, and never really found the answer to all in one place. Crea personalizzato Conti Commento: Ecco un trucco che ho cercato disperatamente di capire per mesi e mesi, e mai davvero trovato la risposta a tutti in un unico posto. I ended up finding the answer not in a blog post, but in theme code instead. Ho finito per trovare la risposta non in un post sul blog, ma in tema di codice invece. Some of the best bloggers sites that I read have some post meta-information in the title header, including a comment count. Alcuni dei migliori siti di blogger che ho letto alcuni post sono meta-informazioni nel titolo intestazione, compreso un commento contare. Usually it’s also a link, and sometimes it has a cool little comment bubble or a phrase like “What do you have to say?” Di solito è anche un link e, talvolta, si ha un po 'di fresco commento bolla o una frase del tipo "Che cosa hai da dire?"

Normally to just get a “comment count”, you see code like this in a theme: Normalmente solo per ottenere un "contare commento", si veda il codice di questo tipo in un tema:

 <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> 

After “comments_popup_link” the text inside the three sets of quotes represents what should be printed out if there are no comments yet, only one comment, or more than one comment. Dopo "comments_popup_link" il testo all'interno delle tre serie di citazioni rappresenta ciò che dovrebbe essere stampato se non ci sono ancora commenti, solo un commento, o più di un commento. You modify the text to say whatever you want here. Di modificare il testo per dire quello che volete qui. You could change ‘No Comments’ to ‘Be the first to comment…’, etc. But, if you’re like me you probably want to spice it up a bit and add a nice little comment icon. Si potrebbe cambiare 'Nessun Commento' a 'Diventa il primo a commentare ...', ecc Ma, se siete come me probabilmente avrete bisogno per rendere esso un po 'e aggiungere un bel po' di commento icona. If so, use this code: In tal caso, utilizzare questo codice:

 <?php $comments_img_link= '<img src="/wp-content/themes/mytheme/images/comments-icon.gif"  title="comments" alt="comments" />'; comments_popup_link($comments_img_link .' Comments(0)', $comments_img_link .' Comments(1)', $comments_img_link . '  Comments(%)');?> 

In the first line just change the path your theme image directory and copy and past the code wherever you want the comment count and icon to appear for your home page posts. Nella prima riga solo modificare il percorso delle immagini il tema di directory e di copia e passato il codice dove volete contare il commento e l'icona a comparire per la tua home page post.

Unique Ads Between Posts : This technique can be used to place most anything in between the posts in “the loop” on your home page, I used it to display adsense ads after the 2nd and 6th posts (in the loop of 10). Gli annunci Tra unico Interventi: Questa tecnica può essere utilizzata per più nulla posto tra i posti in "loop" sulla tua home page, l'ho usato per visualizzare gli annunci AdSense dopo il 2 ° e 6 posti (nel giro di 10). It doesn’t have to be an ad - it could be used to show image dividers between each post, random quotes, special links - anything. Essa non deve essere un annuncio - che potrebbe essere utilizzata per mostrare l'immagine divisori tra ogni post, casuale citazioni, collegamenti speciali - niente.

First - I’ll show (again) what “the loop” basically looks like: In primo luogo - I'll show (di nuovo) quello che "l'anello" sostanzialmente simile a:

 <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <p class="postmetadata"><?php the_time('F jS, Y') ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' |'); ?>  <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p> </div> <?php endwhile; ?> 

“The Loop” in Wordpress is a function that retrieves from your database a series of (10) posts. "Il Loop" di Wordpress è una funzione che recupera dalla vostra base di dati di una serie di (10) posti. It starts out with the “have_posts” line and ends with the “endwhile” line. Si inizia con la "have_posts" e termina con la "endwhile" linea. It’s called the loop because it does the same thing over and over - one post at a time. Si chiama il loop, perché non la stessa cosa più e più - un posto in un momento. That’s why inside “the loop” is the code to print the time, category, comment count, and whatever miscellaneous things are in your themes loop. Ecco perché dentro "l'anello" è il codice per stampare il tempo, categoria, commento contare, e quant'altro sono varie cose nella vostra temi loop. You loop might be slightly different than my example for just that reason, different details are displayed for posts in different themes. È circuito potrebbe essere leggermente diverso da mio esempio solo per questo motivo, diversi dettagli vengono visualizzati per i posti in diversi temi. That’s the beauty of being able to “hack wordpress” - you can easily change those details. Questa è la bellezza di essere in grado di "hack wordpress" - è possibile modificare facilmente i dettagli.

What we’re going to do is insert a “counter” in the loop, and then tell it to do something when it reaches certain numbers in the count. Che cosa stiamo andando a fare è inserire un "contatore" nel giro, e poi dire che a fare qualcosa quando si raggiunge determinati numeri nel conteggio. Here’s the modified code to do that: Ecco il codice modificato per farlo:

 <?php if (have_posts()) : ?> <?php $count = 1 ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <p class="postmetadata"><?php the_time('F jS, Y') ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' |'); ?>  <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></p> </div> <?php if ($count==2) { include('advert1.php'); } ?> <?php if ($count==6) { include('advert2.php'); } ?> <?php $count = $count + 1; ?> <?php endwhile; ?> 

You’ll notice in this modified example that on the second line we have inserted a counter that starts with “1″ the first time through. Si noterà in questo esempio, che modifica la seconda linea che abbiamo inserito un contatore che inizia con "1" la prima volta attraverso. The second to the last line (count + 1) ads one number to the counter each time through so it can keep track of which post we’re on. La seconda per l'ultima riga (count + 1) gli annunci di un numero al contatore ogni volta che attraverso in modo da poter tenere traccia dei post che siamo su. The two lines before that say “if the counter is on #2 or #6 - include this file”. Le due linee che prima di dire "se il contatore è a 2 o # # 6 - includere questo file". I created 2 files, both advert1.php and advert2.php and placed them in my theme directory. Ho creato 2 immagini, sia advert1.php e advert2.php e messo loro a mio tema di directory. When the counter reaches 2 or 6 it opens those files and prints the contents to the page. Quando il contatore raggiunge il 2 o 6 si apre quei file e stampa il contenuto della pagina. For my home page, both those files contain the adsense code to be displayed in those spots. Per la mia home page, sia i file contenenti il codice AdSense per essere visualizzati su quelle macchie. As I said - you could include anything, and you can name those file whatever you want. Come ho già detto - si potrebbe comprendere nulla, e potete cambiare il nome del file quelli quello che volete. In addition, you can change, modify, or add lines to the counter for any number 1-10 as well. In aggiunta, è possibile cambiare, modificare, aggiungere o linee per il contatore per ogni numero e 1.10.

3. 3. Dump the Next and Previous : I’ve always hated those “previous posts” link on the bottom of every Wordpress homepage. Il dump Successiva e Precedente: semper ho odiato quelli "post precedenti" sulla parte inferiore della home page di ogni Wordpress. I want my visitor’s (especially the first time ones) to know that I have many pages of content they can peruse, and a numbered list (like navigation at google) tells them just that. Voglio che i miei visitatori (in particolare la prima volta quelle) di sapere che ho molte pagine di contenuti che può esaminare, e un elenco numerato (come la navigazione in Google) dice loro che solo. They can easily jump back to page 3, or 6, or whatever to view previous posts, and then back again. Essi possono facilmente tornare indietro alla pagina 3, o 6, o qualunque cosa per visualizzare i post precedenti, e poi di nuovo indietro. Wordpress’ pagination feature of only one page at a time is terrible at best. Wordpress' impaginazione caratteristica di una sola pagina alla volta è terribile nel migliore dei casi. The Il WP Page Numbers Wordpress plugin WP numeri di pagina wordpress plugin takes care of this seamlessly. si prende cura di questo senza problemi. *Note, this plugin can also be used all other templated pages where more than one page of posts are retrieved. * Nota, questo plugin possono essere utilizzati anche tutti gli altri modelli in cui le pagine più di una pagina di posti di lavoro vengono recuperati.

4. 4. Homepage Excerpts : If you want to control how many posts on your home page are displayed full and how many to show as excerpts (without mucking in any code at all), Homepage Estratti: Se si desidera controllare il numero di posti a tua home page vengono visualizzate pieno e come molti di mostrare come estratti (senza mucking in ogni codice a tutti), Homepage Excerpts Estratti Homepage is the plugin you need. è il plugin di cui avete bisogno. I use this on most of my Wordpress sites, and you basically configure it with 1 click (how many posts to display full). Io lo uso per la maggior parte del mio Wordpress siti, e si configura essenzialmente con 1 clic (il numero di posti a pieno schermo).

5. 5. Enable Post Voting : You could enable a voting function by using Attiva Post di voto: si potrebbe consentire un voto funzione utilizzando Vote It Up Votazione It Up enabling your Wordpress readers to vote for your posts Digg or Reddit style, and then put a list of most popular ones at the top of your homepage like this: consentendo il tuo Wordpress lettori di votare per i tuoi post Digg o Reddit stile, e poi un elenco di quelli piu 'conosciuti nella parte superiore della tua home page in questo modo:

votazione su WordPress esempio

6. 6. Random Featured Post : Use your old posts and give them new life, by creating featuring a random post before your content on your home page using the Random Featured Post: Usa il tuo vecchi post e dare loro nuova vita, creando con una casuale prima di postare i tuoi contenuti alla tua home page utilizzando il Random Featured Post Wordpress Plugin . Random Featured post wordpress plugin. You might also try Puoi anche provare a Advanced Random Post Advanced casuale post . .

7. 7. Display an Accouncement : Using the Visualizzazione di un Accouncement: Uso della Genki Announcement Genki Annuncio plugin you can display an announcement before your posts on the homepage. plugin è possibile visualizzare un avviso prima che i tuoi post in home page. This is great, because you don’t have to hack any code to do this, you can turn the message on or off whenever you want, and you can even restrict it to differerent roles or users if you need to. Questo è grande, perché non si dispone di alcun codice trucco per fare questo, è possibile attivare il messaggio o disattivare quando si desidera, e si può anche limitare a differerent ruoli o utenti, se necessario. There’s even a timer feature to turn the announcement on or off. C'è anche una funzione di timer per accendere l'annuncio on o off. Your message could be holiday related (Merry Christmas!), or a time advertisement (for 48 hour only), a message (to all site admins), or everyone (thanks for visiting my blog!). Il tuo messaggio potrebbe essere connessi vacanza (Buon Natale!), O un tempo di pubblicità (per ora solo 48), un messaggio (a tutti gli amministratori del sito), o tutti (grazie per visitare il mio blog!).

8. 8. Make a Post “Sticky” : Instead of an announcement or a random post, maybe what you want to do is make one particular post “sticky” - or have it stay at the top of the homepage (until you change it). Fare un post "Sticky": Invece di un annuncio o un post casuale, forse quello che vuoi fare è rendere un particolare post "sticky" - o far rimanere nella parte superiore della home page (fino a nuova modifica). Easy enough, Lester Chan’s Abbastanza facile, Lester Chan's Creating a Dynamic Sticky Creazione di una dinamica appiccicosi “. ". Basically he figured out how to create “two loops” on the homepage. Fondamentalmente egli figurato su come creare "due loop" sulla home page. The first loop gets one post from one category. Il primo ciclo prende un posto da una categoria. Basically he created a new category called “frontpage” and assigned all the articles he wanted to “feature” for a time. Fondamentalmente ha creato una nuova categoria chiamata "FrontPage" e contrassegnati con tutti gli articoli voleva "funzione" per un tempo. Then the first loop shows one featured article at a time in a styled div box. Poi il primo ciclo mostra un optional articolo in un momento in uno stile div casella. Then, immediately following the normal loop gets the 10 latest posts from the database, but it does check to ensure that it doesn’t duplicate the featured post again. Poi, immediatamente dopo il normale ciclo riceve i 10 post più recenti dal database, ma controllare per garantire che essa non duplicare le funzioni di nuovo post. Very nice hack! Molto bella hack!

10. 10. Edit Article Excerpts : Modifica all'articolo estratti: Wordpress Excerpt Editor Wordpress estratto editor is a unique plugin that allows you to add custom excerpts for page (something you can’t do without a plugin). è un unico plugin che permette di aggiungere estratti di pagina (qualcosa che non può fare a meno di un plugin). Normally, if you choose to use excerpts - Wordpress will take the first so many words of your posts. Normalmente, se si sceglie di utilizzare estratti - Wordpress terrà la prima tante parole dei tuoi post. As far as your homepage is concerned, this doesn’t do much for “original content” or avoiding “duplicate content” at all. Per quanto riguarda la tua home page in questione è, questo non fa molto per i "contenuti originali" o evitando "contenuti duplicati" a tutti. This plugin enables you write a custom excerpt for each post or page, as you write it. Questo plugin permette la scrittura di un estratto personalizzato per ogni post o una pagina, come si scrive esso. Then, if you use excerpts on your homepage - the custom excerpt will be dispayed instead of the first “x” words making your home page contain completely unique content. Quindi, se si utilizza estratti nella tua home page - l'usanza estratto sarà dispayed invece del primo "x" parole di tua home page a contenere completamente unico contenuto. It also allows you to write some different linkbait enticing people to click and view that article. Consente inoltre di scrivere qualche seducente differenti linkbait le persone a scegliere e visualizzare tale articolo. It has options to do the same for both archive and tag pages. Ha opzioni per fare lo stesso per entrambi i tag di archivio e pagine.

Excerpt Editor also has some advanced options for showing excerpts of “x” recent posts under each Post/Page and it can even show excerpts from “x sub pages” on each page. Estratto Editore ha anche alcune opzioni avanzate per mostrare estratti di "x" ultimi posti sotto ogni Post / Page e può anche mostrare estratti da "x sub pagine" su ogni pagina. With all these options, it can do many things beyond custom excerpts on your home page. Con tutte queste opzioni, si possono fare molte cose al di là di estratti personalizzato sulla tua home page.

11. 11. Add Thumbnails to Your Posts Using Custom Fields : There are many, many ways to add images to posts either manually or with a plugin. Anteprime Aggiungi ai tuoi post Utilizzo di campi personalizzati: Ci sono molti modi per aggiungere immagini a posti manualmente o con un plugin. Once of the most overlooked features of Wordpress is the “custom field”. Una volta di più trascurato caratteristiche di Wordpress è il "campo personalizzato". You have the ability to create and fill-in custom fields with every post you write, but probably don’t know it. Hai la possibilità di creare e compilare in campi personalizzati con ogni post si scrive, ma probabilmente non lo sanno. Under every “write post” page is the “custom fields” form (this one from WP 2.5): Sotto ogni "scrivere post" è la pagina "campi personalizzati" forma (uno da questo WP 2.5):

campo personalizzato esempio

A custom field is nothing more than metadata that you create. Un campo personalizzato non è nulla più di metadati che si crea. You probably know metadata as keywords and descriptions for search engines, but you can make your own custom metadata fields to describe or enhance your posts. Probabilmente sapete metadati come parole chiave e le descrizioni per i motori di ricerca, ma è possibile effettuare i vostri propri campi di metadati per descrivere o migliorare i tuoi post. Each custom field has a “key” and then a “value”. Ogni campo personalizzato è una "chiave" e quindi un "valore". The key is the name of the metadata (like Image or thumbnail) and the value is the content (like file.gif or picture.jpg). La chiave è il nome dei metadati (come immagini o miniatura) e il valore è il contenuto (come file.gif o picture.jpg). Just Tadlock has a pretty good Basta Tadlock ha un buon Introduction to Custom Fields Introduzione ai campi personalizzati , and also , E anche Custom Fields: Adding Images to Posts Campi personalizzati: Aggiunta di immagini di posti .

12. 12. Create a Date Button for Posts : Seems like most of the more “premium” Wordpress themes (and hand-crafted ones) have a “date button” for the post, a nice image with the month abbreviation and the date (sometimes the day of the week too). Creare un pulsante per Data Interventi: sembra la maggior parte dei più "premio" temi Wordpress (a mano e quelli artigianali) hanno una "data pulsante" per il posto, una bella immagine con l'abbreviazione mesi e la data (a volte il giorno della Anche la settimana). Small Potato at WP-Designer wrote a great tutorial last year on Piccole patate al WP-Designer ha scritto una grande lezione dello scorso anno sulla How to Create a Date Button Come creare un pulsante DATE .

I hope these home page hacks helped you, and as always if you have something to add to make this post better (or a question) - please comment now! Mi auguro che tali home page hack contribuito a voi, e come al solito se hai qualcosa da aggiungere a questo post fare meglio (o una questione) - si prega di commentare ora!


Tags: Tag: , ,

5 Responses to “Wordpress Hack #14: 12 Ways to Hack Your Home Page” 5 Responses to "Wordpress Hack # 14: 12 Modi per Hack la tua home page"

  1. Paul Paolo Has the following to say... Ha i seguenti dire ...

    I finally understand what the “loop” is. Ho finalmente capire che cosa il "ciclo" è.

    I was looking for an easy way to put an introduction-explanation-welcome on one of my sites and the sticky plugin looks like it will work well Che stavo cercando un modo semplice per porre introduzione-spiegazione-benvenuto su uno dei miei siti e appiccicoso il plugin sembra funzionare bene si

    Pauls last blog post..1 Pauls ultimo post sul blog .. 1

  2. Erika Erika Has the following to say... Ha le seguenti dire ...

    Your “creating a dynamic sticky” link is swallowing some of your code. Il tuo "creare una dinamica appiccicosi" link è deglutizione alcuni di codice. You might be missing a tag in there. Potrebbe essere manca un tag in là.

    Great post, though. Great post, però. :)

    Erikas last blog post..1 Erikas ultimo post sul blog .. 1

  3. AndrewGribben.com » Blog Archive » links for 2008-05-21 AndrewGribben.com »Blog Archive» collegamenti per 2008-05-21 Has the following to say... Ha le seguenti dire ...

    [...] Wordpress Hack #14: 12 Ways to Hack Your Home Page | JTPRATT’s Blogging Mistakes [...] [...] Wordpress Hack # 14: 12 Modi per Hack La tua Home Page | JTPRATT del blogging Errori [...]

  4. MyZeroWaste MyZeroWaste Has the following to say... Ha le seguenti dire ...

    Thanks very much for these hacks. Grazie molto per questo hack. Just what I wanted to enhnace my blog without resorting to plugins. Proprio quello che volevo enhnace mio blog senza ricorrere a plugin.

    MyZeroWastes last blog post.. MyZeroWastes ultimo post sul blog .. Sunday roundup Domenica Roundup

  5. Akiyamasan Akiyamasan Has the following to say... Ha le seguenti dire ...

    Great post! Gran post! I’m going to implement the WP page numbers. Io vado per l'attuazione del WP numeri di pagina. thanks! grazie!

    Akiyamasans last blog post.. Akiyamasans ultimo post sul blog .. make a difference to a Soldier in 60 seconds fare una differenza di un soldato in 60 secondi

Question or Comment?? Domanda o commento? Spill it Now... Spill comprare ...

Saltando di gioia su commenti!

We Reward Comments! Abbiamo ricompensa commenti!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Abbiamo dofollow link, e ottenere il tuo ultimo post sul blog come sottotitolo sotto ogni nuovo commento dal "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! Top commenters per ogni mese sono riportati su ogni pagina di questo sito in una barra laterale widget collegate al suo URL! We would like to reward you for becoming part of our community! Vorremmo che vi ricompensi per diventare parte della nostra comunità! Your comment is valuable not only to us, but also all the other readers of this blog! Il tuo commento è prezioso non solo per noi, ma anche tutti gli altri lettori di questo blog!


Click to add smilies to your post! Fare clic per aggiungere Faccine per il tuo post! == []^ = (= ((= (|=) r= | 8= 0=) ~= 00= (=;=)]=;;;