Len
Forum Replies Created
-
Forum: Plugins
In reply to: How to make an archive page with 2.7If you’re creating a new page template make sure you follow the instructions in the Codex –> Creating Your Own Page Templates
If you have created a page template called bloglist.php make sure this is at the top …
<?php /* Template Name: bloglist */ ?>It will then appear as an option to select from available page templates.
Forum: Plugins
In reply to: How to make an archive page with 2.7PHP doesn’t normally play well in posts or pages. Page templates have the advantage that if you want to include some sort of PHP you can do so then assign the new template to your page.
For example, I created a page template for displaying a random post from a particular category. That wouldn’t work any other way.
Forum: Fixing WordPress
In reply to: Blog DissappearedAsk and ye shall receive.
Forum: Plugins
In reply to: How to make an archive page with 2.7Okay, you have created a new page template called bloglist.php and inserted the pertinent code. Good. Next, write a new page (not post) using the write page window. Call it whatever you want ie: Blog List, Links whatever but leave the content blank. Assign the new page template to it.
With trackbacks, I never use ’em. I just link to sites where I picked something up. (pingbacks)
Forum: Plugins
In reply to: How to make an archive page with 2.7is it possible to do the same with my blogroll list and will people on it still receive a trackback when I write something new
Yes and yes. I have created various page templates for the theme I’m using including 3 different blogrolls.
You should understand the difference between trackbacks and pingbacks though.
Trackback: You’ve just read something on another blog that inspired you to write your own post about. You write the post and manually send a trackback to the blog where you read the post that inspired you.
Pingback: You’ve just read something on another blog that inspired you to write your own post about. You write the post and link to the blog where you read the post that inspired you. WordPress will automatically send a pingback to that blog.
Both methods use different protocols.
Also, I wonder how you do link to the page you created… I mean: do you manually add the link in the sidebar and the menu?
You can add it manually if you want to but if you’re using the
wp_list_pages()tag the page will be printed out along with any others.Forum: Themes and Templates
In reply to: link to pages in themeI’m still not understanding what you’ve done. You’ve created a file called about.php and your’re trying to link to it in the nav menu? If so it sounds like you are trying to link directly to the PHP file. Why not just create a page called “about” and link to it?
Forum: Plugins
In reply to: How to make an archive page with 2.7Normally it’s just a matter of creating a new page template, (you can use index.php as a working example) write you page – call it archives or whatever and assign the new page template to it. In the page template itself you can insert whatever code you want.
What theme are you using?
Forum: Themes and Templates
In reply to: link to pages in themeYou’re not linking directly to page templates are you?
WordPress is no more insecure than any other dynamic PHP application. As previously mentioned there is no way to tell what tomorrow may bring. It’s a cat and mouse game – bad guys figure out a way to exploit something and good guys fix it. Such is the nature of the beast with not only a dynamic language but an open-source app where everyone and his dog can study the source code.
With the new core upgrade feature built into 2.7 there is no excuse not to upgrade. (unless you don’t want to for some reason)
Forum: Fixing WordPress
In reply to: Post excerpt options?Yes, ronchicago just posted a link to one such plugin. There maybe more in the Plugin Directory – I don’t know as I didn’t look.
Forum: Everything else WordPress
In reply to: A Summary Instead of the Full PostYour theme’s page template that is used to display category archives uses the
the_excerpt()tag while the template page your theme uses to display the front page uses thethe_content()tag. You have a few choices:1. You could use
the_excerpt()on the front page.
2. If you wish to stick withthe_content()on the front page you could write your post and use the “more” button on your write post toolbar.
3. If you wish to stick withthe_content()on the front page you could use the Excerpt box directly beneath the write post window.Forum: Fixing WordPress
In reply to: Post excerpt options?Plugins are the easiest. A second way is to stick this in your theme’s function.php file…
remove_filter('get_the_excerpt', 'wp_trim_excerpt'); add_filter('get_the_excerpt', 'custom_trim_excerpt'); function custom_trim_excerpt($text) { // Fakes an excerpt if needed global $post; if ( '' == $text ) { $text = get_the_content(''); $text = apply_filters('the_content', $text); $text = str_replace(']]>', ']]>', $text); $text = strip_tags($text); $excerpt_length = x; $words = explode(' ', $text, $excerpt_length + 1); if (count($words) > $excerpt_length) { array_pop($words); array_push($words, '...'); $text = implode(' ', $words); } } return $text; }A third option is to use the Excerpt box directly beneath the Write Post window. It will display whatever you type in the input field.
Forum: Fixing WordPress
In reply to: Help please I cannot log in@khalidmsyed – That code should not be there. You might want to have a look at the following threads. Lots of good info.
Forum: Installing WordPress
In reply to: Not Found. The requested document was not found on this server.All of your internal links render 404s. Reset your permalink structure.
Forum: Fixing WordPress
In reply to: How to change page order WP 2.7Are you using the
sort_column=menu_orderargument in thewp_list_pagesfunction?wp_list_pages()has several arguments that can be passed to it within the ()More reading on wp_list_pages