18 August 2005 USING WORDPRESS This text file contains my notes on how to use Wordpress. Wordpress is poorly documented, so this is important. I will add to this file over time. XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX I've found out how to put comments in Wordpress templates, which I suppose are written in PhP. I can add a date comment like this: The stylesheet is in some other language, perhaps HTML, so a comment would look like this: /* Eric Rasmusen, 13 June 2005 */ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX THE COMMAND If you put between two lines of a post like this:
I came across an article on Roman Catholic political doctrine. Since I had a couple of old posts (August 5, 2003) on this and the question of Moslem and Roman Catholic loyalty to the U.S. Constitution, I thought I'd combine them.
This article says Prior
then on the index page the post will end at "them" and "Read the
rest of this entry »" will appear. The reader will have to click on
that to get to the rest of the post.
DO NOT HAVE BLANK LINES BEFORE OR AFTER
DO NOT PUT IN THE MIDDLE OF A BLOCKQUOTE-- it will mess up
the index page.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
STYLE FILES
http://www.rasmusen.org/x/images/style.css
http://www.rasmusen.org/x/images/index.php.txt
http://www.rasmusen.org/x/images/post.php.txt
http://www.rasmusen.org/x/images/footer.php.txt
http://www.rasmusen.org/x/images/sidebar.php.txt
http://www.rasmusen.org/x/images/archive.php.txt
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Fixing the Number of Posts Shown in Wordpress
Wordpress has an annoying design flaw: the same number of posts must
be displayed on the main weblog page and on every archive page. Thus, if you want just 20 posts to show on your main page,
only 20 posts will show up in your monthly archive. You can change
the number "20" in OPTIONS/READING, but it has to be uniform.
I found a fix here. At the very start of the Archives Template,
insert
< ?php $posts = query_posts($query_string . '&nopaging=1'); ?>
That will turn off the 20 post limit for archives.
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
TO CREATE A COLORED TEXT BOX:
In style.css, put:
#banner { background-color:blue; width: 700px; padding-right: 20px;
padding- left:20px; padding-top: 10px; padding-bottom: 10px; margin:
30px 13em 0 3em; }
That makes a box of color FFFCC with colored blank padding all around
the text and with white blank space all around the textbox.
Then on the page itself, e.g. index.php, insert (if you want white
writing):