richsipe
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Post management issue…Have you checked to see if your rich text editor option is turned on?
The setting is under Users -> Your Profile tab and is the top check box there.
If you are pasting text from MS Word you should clean it first by pasting it into a pure text editor such as NotePad or TextPad because that is what is causing your terrible code up there (MSNormal is Microsoft Normal Style).
Forum: Your WordPress
In reply to: My 2.1 Static Home Page and custom picture galleryThanks for your feedback 🙂 Designing for multiple browsers some of which are rebels is always frustrating.
For the archive symmetry it isn’t a problem because when I call the archive function I pass it the number of months I want to return. Currently my archive goes back many more months than is displayed but I only choose to show the top 9 on the home page 🙂 Although, when I add a category I need to remember to add another item to the archive list to prevent ugliness.
Forum: Fixing WordPress
In reply to: 5 headlines per category on the home page?Here is a good start for you. This will work if you want to pick out certain categories (X) and display the 5 posts for them. You can also do this for all categories:
<?php $cat_id = X; $cat_name = get_cat_name($cat_id); echo ($cat_name . ""); $posts = get_posts( "category=10&numberposts=5" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <div><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></div> <?php endforeach; ?> <?php endif; ?>The above is just quickly cobled together. You will need to adjust it for your needs and make the ul etc but it should get you started at least knowing what functions to call.
–[moderated sig]–
Forum: Plugins
In reply to: Where do I get API key for self-hosted blog?Visit http://www.wordpress.com and create a user account there. Then you can get your API key and plug it into akismet. I don’t remember the exact steps I took to do it but I think it is pretty obvious during the process.
–[sig moderated]–
Forum: Plugins
In reply to: New Static Front Page, link to Blog PageYou have two problems. Both of which are maddening when you are debugging.
1. You have a single = instead of a == so you are setting the variable $mytheme_frontpage to page instead of checking the conditional statement for equals using ==.
2. You are missing quotes around the value you are checking the variable $mytheme_frontpage against. So instead of checking to see if it is equal to the string ‘page’ you are checking if it is equal to the memory space of the constant page.It should be:
<a href="<?php if ( $mytheme_frontpage == 'page' ) { echo $mytheme_blog_url; } else { bloginfo('home'); } ?>" title="home">Blog</a>–[moderated sig]–
Forum: Themes and Templates
In reply to: vertically aligning text via cssYour images are causing the text to be pushed down. You can either float the images and then valign everything, set the padding to move the text around, or set the align on the image to Absolute Middle using align=”absmiddle”
–[sig moderated]–
Forum: Fixing WordPress
In reply to: Reposition date and title in postI think this should do it. Let me know.
<?php the_time('F j, Y'); ?> | <?php comments_popup_link('Leave a Comment', '1 Comment', '% Comments'); ?> <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1> <?php the_content(__('Read more'));?> <div style="clear:both;"></div>I am not positive of the rest of the divs and how they interact so that is a good first shot.
–[sig moderated]–
Forum: Fixing WordPress
In reply to: Comments consisting of my own posts?It is actually a trackback. It appears as a comment depending on the theme you are using. You can tell a trackback because it will have a quoted string and usually some … to indicate more and will list where the link is referenced.
You can just delete these. WordPress automatically adds them when it detects someone entered your post from a link on another blog site. You can turn this off in the admin section under Options and then the Discussion tab. Then Uncheck the top two boxes.
Forum: Fixing WordPress
In reply to: creating link in my post to another blogTo make a link if you have the WSYWIG editor turned off (IE your screen looks like the one on this post, it is easiest to first write the text of the link IE: Richard’s Blog then Highlight it using the cursor and then click the link button to make Richard’s Blog and you should get:
<a href="http://www.richandstephsipe.com/wordpress/"> Richard's Blog </a>What could be happening is maybe your CSS is set to have a link color of white for whatever reason. You can try using this inline CSS link to see if it works in a post
<a href="http://www.richandstephsipe.com/wordpress/" style="color:blue;font-weight:bold;">A Blog</a>Forum: Plugins
In reply to: Get Newest post for CategoryHere is the code to use. Just make sure you put your actual category number instead of CATNUMBER in the code below. You can find your category ID in the category section of the admin.
<?php $posts = get_posts( "category=CATNUMBER&numberposts=1" ); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <div class="post"> DO YOUR THING HERE </div> <?php endforeach; ?> <?php endif; ?>If you use the main category it will automatically include all of the sub categories. Let me know if you have any issues.
Forum: Plugins
In reply to: using php in posts (trying to include a file)You are receiving a Warning not an error so the code should still work it just is letting you know there could be issues. The Warning is to let you know that you are not going to get what you think. You will get the server output of the file and not the code of the file.
The problem is you are including a page with a web url. You need to do one of the following to reference the FILE and not the URL:
* use a relative path to the file such as – /home/userid/public_html/directory/file.php
* or use a path such as – include(“$DOCUMENT_ROOT/file.php”);Forum: Fixing WordPress
In reply to: Static home page feature in v 2.1I have written up a pretty simple howto I hope on setting up your static home page. You can find it here: http://www.richandstephsipe.com/wordpress/2007/02/12/wordpress-21-static-homepage/.
My blog is setup with WordPress in a non root folder (mine is creatively named /wordpress/) and I have a pre 2.1 pretty standard template (although hacked to beyond recognition) setup and I had no issues.
You shouldn’t need an external plugin etc to enable this feature but if you had one active before the 2.1 release to hack the static home page feature you will need to undo this. Also if you have a home.php file I think you need to rename/blow it away because it causes issues.
The biggest gotcha is you must “create” the new page to use as your static homepage using the WordPress–>Write–>Write Page Admin menu and NOT by creating a new .PHP page by hand and manually uploading it to your server. The old hack way to do the static page involved creating another page manually and then hacking it into place but WordPress 2.1 allows you to do this all within the WPAdmin manager without the Ugly Hacks.
To make your new home page look different you will need to create a specific template with the design you want for your home page. Then you need to create (write in WordPress speak) a page using WordPress that you set to use that new template (mine has a blank Content section for that page). You also need to create another page in WordPress to use as your blog page since you now don’t have that on your homepage and set that page to use your normal template. Anyways … I don’t want to rehash the longer writeup I did and end up confusing people more.
GATEKeeper: If you don’t see the “Front Page” option set as your first one your 2.1 update probably had some issues and you will need to redo it.
If my blog write up isn’t clear throw down a comment on the post and I will try to make it more clear.
The issue I had and many others now are facing is the old hacky way to do it is getting mixed up into the new 2.1 way and confusing people. When you Google Static Home Page you get all the hacks and when you look it up on the WordPress support boards you get hacks mixed up with the now correct way to do it and it is hard to figure it all out.