jpmcc
Forum Replies Created
-
Forum: Installing WordPress
In reply to: I need help with sitebar.<?php wp_list_cats('optioncount=0&children=0'); ?>See http://codex.ww.wp.xz.cn/Template_Tags/wp_list_cats
John
Forum: Fixing WordPress
In reply to: How to stop hackers?Welcome to the web!
There are probably two answers here:
- You will probably see visits from search engines. If you don’t want to appear on the popular search engines, put a suitable robots.txt on your site – see for example http://www.searchengineworld.com/robots/robots_tutorial.htm
- You can expect dozens / hundreds of automated ‘probes’ of your site every day, trying to see if your server is unprotected against the hundreds of software vulernerabilities known to hackers. If your server is found to be vulnerable, you may expect a more serious attempt to take it over shortly 🙁
There isn’t a great deal you can do to stop this if you want your site to be generally accessible over the net. The main thing is to make sure your server software is correctly confirgured, and regularly patched with the latest security releases.
John
Forum: Everything else WordPress
In reply to: Using WordPress as a CMSWith WP you can create two different type of ‘things’:
- Posts are traditional blog entries, usually displayed in chronological order
- Pages are more like what you get with a CMS – static pages with an optional hierarchical structure
You can have both of these on the same site. For an example, look at http://www.balerno-communitycouncil.org.uk :
- Categories and Archive contains Posts (click on 2005 to see how the chronological filing works)
- Sections contains Pages (click on Directory to see how the hierarchy works)
John
Forum: Your WordPress
In reply to: Launched: CharlesPhoenix.com, and bless WordPressIt would be nice to give some credit to the WP developers somewhere on the site – even in tiny little letters – I couldn’t see any mention of WP anywhere?
John
Forum: Installing WordPress
In reply to: Simple question! How to make images appear in blog?Which version of WordPress are you using?
John
Forum: Themes and Templates
In reply to: Where to put adsense codeI just copied the code that Google gave me into sidebar.php – you can see the results on http://jpmcc.blogdns.org
John
Forum: Requests and Feedback
In reply to: Dynamic Site MapI have a plug-in which turns a hierarchical menu of WP Pages (Pages, not Posts) into a ‘folding’ menu – I don’t know if this is what you are looking for:
http://jpmcc.blogdns.org/index.php/software/fold_page_menus/John
Forum: Installing WordPress
In reply to: Root page other than index.php?If you create a home.php, then WordPress will use that instead of index.php whenever a user accesses your root URL. I don’t think you can go much further than that without hacking php code and using cookies etc.
John
Forum: Fixing WordPress
In reply to: Simple One Post PageAm I missing something obvious – why not just set
Show at most: 1 post
in Options -> Reading?John
Forum: Fixing WordPress
In reply to: a new kind of front page<?php the_title(); ?><?php the_time('d/m/Y') ?>See:
http://codex.ww.wp.xz.cn/Template_Tags/the_time
http://codex.ww.wp.xz.cn/Formatting_Date_and_Time
http://uk.php.net/dateJohn
Forum: Plugins
In reply to: ‘Disable’ The Loop for main page; keep for Archives, etc.You might like to have a static home page, which you can then populate ‘manually’ with other data – see http://jpmcc.blogdns.org/index.php/software/how-to-create-a-static-home-page/
John
Forum: Fixing WordPress
In reply to: a new kind of front pageMake sure that you have used real single quote signs before and after ‘pagename=home’ and not some other symbol. If you cut and paste from the browser you may pick up some funny characters…
John
Forum: Fixing WordPress
In reply to: a new kind of front pageI wrote a HOW-TO on my blog which might help:
http://jpmcc.blogdns.org/index.php/software/how-to-create-a-static-home-page/
It describes how to create a static front page. I could also email you a copy of the home.php if that’s any help.
John
Forum: Fixing WordPress
In reply to: Children and posts on a parent page?If you use Pages rather than Posts to store your content, then you can then create your top level Pages as Main Page (No Parent), and set the Page Parent for each of the children to the appropriate Main Page.
No need to use categories at all 🙂
John
Forum: Installing WordPress
In reply to: where to save images?It doesn’t really matter, but if you want a convention I’d suggest:
- If the images accompany a specific posting: one of the new features in WordPress 2.0 is that you can upload images directly from the Post and Page editing screens. WP will store them in a directory structure yyyy/mm under wp-content/uploads, e.g. wp-content/uploads/2006/01/myimage.png.
- If the images are part of a theme then I’d suggest wp-content/themes/theme-name/images
John