Themes | Widgets | WordPress Tutorials
Tutorials für Wordpress Themes | Widgets und Design.
Home

Feb 09

Das Template-Tag get_archives( ) wird normalerweise dazu benutzt, um zu einer bestimmten Kategorie anzuzeigen. Anwendung z.B. für die wie folgt:

<h2>Recent </h2>
<ul>
<?php get_archives( 'postbypost', 6 ); ?>
</ul>

Hat man nun viele und möchte Artikel zu einer ganz bestimmten Kategorie herausfischen, so muß man eine eigene kleine Datenbankabfrage hinzufügen, was in aber reletiv einfach ist:

<ul>
<?php
$recent = new WP_Query( "cat=1&showposts=10" );
while( $recent->have_posts( )): $recent->the_post( );
?>
<li><a href="<?php the_permalink( ); ?>" rel="bookmark">
<?php the_title( ); ?></a>
</li>
<?php endwhile; ?>
</ul>

Das ist also noch recht übersichtlich. Die gewünschte Kategorie-ID holt man sich aus dem Backend (der Adminoberfläche) von , unter “Verwalten” / “” steht die ID zu jeder Kategorie in der ersten Spalte.

Viel Spaß damit

Tags: , , , , ,

Read more     No Comments
 

Jan 14

Probably one of the most undervalued features of are its category structure and commands. The category feature of can change a blog into a powerful (Content Management System) tool.

One of my friends, didn’t want to use a real calendar for since many of them are general, like “Fall 2008″, so I decided to use and Categories instead. Though the process of maintaining these are manual, it really works well for them.

I split the into different sections. The sections marked, “”, “Classes” and “Trunk Show” are three different categories. Actually, they are sub-categories of the main category “ & Classes”, which you’ll find in the Menu section on the top right.

When he wants to create an Event, he just writes a normal post and select the “” category. The Post automatically appears in the Categories proper place in the . The same with creating “Classes” or “Trunk Shows”. You’ll also notice that the post does not appear on the home page. That is because I the static front page option, which you’ll find under: Options - Reading - Front Page.

Since these are all sub-categories of the main category “ & Classes”, when you click on the “ & Classes” link in the Menu section you get a list of all the under all the sub-categories. Essentially allowing you to view all the , Classes and Trunk Shows on one page.

You’ll notice at the bottom of the “ & Classes” page there’s a link marked “See our past and Classes”. This is another category. Once an event date passes, our client edits the Post, unchecks the current category, and then checks “Past and Classes”. The post is removed from it’s section (category) in the , and is added to the “Past and Classes” page.

NOTE: doesn’t do a very good job of displaying different categories separately in the . We Scott Reilly’s “Customizable Post Listings” Plugin, which you can find here.

Hopefully this post will inspire you to be creative with Categories, I’ll post later a better with real examples!

Tags: , , , , , ,

Read more     1 Comment
 

Jan 14

Here is something interesting. It’s a fully web-based Generator! All you have to do is input your parameters - like font style and color, column widths and border styles -, then hit ‘Save’, and the website delivers your personal in an instant, ready for .

080112-web-based-wordpress-theme-generator.jpg

This is quite impressive on first glance. But be warned: this generator doesn’t use the full power of at all! It merely generates source code for very simple purposes. If you don’t know anything at all about or web development (mainly HTML, CSS, PHP), then you can try this site and see what it can do for you. But if you want really good designs and a sophisticated template, you should better stick to the ones you can get all over the web or here on Beeex.net - for as well.

See for yourself! Click here to go to the Generator.

Read more     No Comments
 

Dec 26

Ich stand vor kurzen vor dem Problem, dass ich das Aussehen meines Blogs ://.flimmerblog.de unterschiedlich haben wollte, je nachdem, ob man eingeloggt ist, doer auch nicht.

Ich habe hierzu sozusagen einen zweiten Blog dazu gemerged, da sich der Membersbereich auf einer anderen Subdomain und einem anderen Verzeichnis befinden sollte. Aber erstmal eins nach dem anderen:

1. Ein komplettes Backup fahren, sowohl Webspace als auch !!!
2. Die Tabelle “. (”wp_” steht für das gewählte Präfix) Die neue Tabelle “members_options” nennen.
3. Den kompletten Webspace in das neue Verzeichnis kopieren, in das der Membersbereich kommen soll.
4. Im Verzeichnis die Datei /.php öffnen und folgendes suchen:

// Table names
$wpdb-> = $wpdb-> . '';
$wpdb->users = $wpdb-> . 'users';
$wpdb->categories = $wpdb-> . 'categories';
$wpdb->post2cat = $wpdb-> . 'post2cat';
$wpdb-> = $wpdb-> . '';
$wpdb->link2cat = $wpdb-> . 'link2cat';
$wpdb->links = $wpdb-> . 'links';
$wpdb->options = $wpdb-> . 'options';
$wpdb->postmeta = $wpdb-> . 'postmeta';
$wpdb->usermeta = $wpdb-> . 'usermeta';
$wpdb->terms = $wpdb-> . 'terms';
$wpdb->term_taxonomy = $wpdb-> . 'term_taxonomy';
$wpdb->term_relationships = $wpdb-> . 'term_relationships';

hier nun die Zeile: $wpdb->options = $wpdb-> . 'options';
ändern in: $wpdb->options = 'members_options';

Das war es. Nun werden bis auf die Options alle von der original - verwendet. Das Verzeichnis kann nun mittels . oder ähnlichem Passwort geschützt werden. Einträge werden von beiden Domains/Verzeichnissen aus in die selben vorgenommen.

Eine einfache und schnelle Möglichkeit Redundanz von Daten entgegenzuwirken.

Tags: , , , , , , , , ,

Read more     No Comments