Filosofo Home-Page Control

What does Filosofo Home-Page Control do?

Filosofo Home-Page Control is a WordPress plugin that lets you:

  • put pages on the same Permalink level (or higher) as the blog’s directory and
  • set which page you want to be the “home” page.

Why would I want to do that?

  • Let’s say you wanted to use WordPress as a Content Management System, or CMS. If your website is www.example.com, you might want a page with relatively static content (i.e. not your most recent blog posts) to greet your visitors when they load www.example.com.
  • One way to accomplish this is to add a file named

    home.php
     
    to your theme; automatically, WordPress will open that page as the home page. Instead, this plugin allows you to choose any of your existing pages to be the default homepage, without having to create a

    home.php
     
    file.
  • Something else you might want to do is make a sub-directory of your site, say “blog,” to be the home of your blog entries, while allowing other pages to be on the same level (or higher) as that of the blog directory. For example, in addition to www.example.com/blog, you might want something like www.example.com/about or www.example.com/my_pet_frogs. (Normally, if the blog resides in www.example.com/blog, pages would be under that directory, so that you would have www.example.com/blog/about instead of www.example.com/about.)

Note: This plugin is not necessary if you are using WordPress version 2.1+

WordPress version 2.1 and newer includes its features, and you can access them under Options > Reading, so you do not need to install this plugin.

Will it work on my blog?

I’ve tested it successfully on WordPress blogs of version 1.5 and newer, including 2.0.

However, you do need to be able to use mod_rewrite in your .htaccess file, which is another way of saying you should already be using Permalinks.

See the “Warning” below which applies to those using WordPress versions prior to 2.0 and especially to those who are unfamiliar with creating or deleting files.

Where do I download it?

Filosofo Pages on a Different Directory 0.8.3 | October 22, 2006

Installation Instructions

Note: this plugin’s functionality is built in to WordPress 2.1 and newer, so there is no need to use it for those versions.

  1. Download one of the files above and extract it. Then upload the

    filosofo-home-page-control.php
     
    file into your WordPress plugins directory, and activate it under Plugins in the admin control panel. (You must be using “Pretty” Permalinks; in other words, Permalinks cannot be set to “Default” aka “off”.)
  2. Navigate to Options » Home-Page Control and choose which page you want to be the home page of your site (or go with the WordPress default), and choose the directory in which you want your blog’s main page to appear.
    Note: this does not mean that you should create a real directory of that name on your server; rather, simply entering the name of your “directory” will make it appear as though there is such a directory, even though it doesn’t actually exist.
  3. (Optional but highly recommended): Navigate to Options » Permalinks and prepend to the custom Permalink structure the directory name that you chose above. That way, it will appear that the individual posts, categories, etc., reside in the same directory as the blog’s main page.
    So, for example, you might change your permalink structure from /%year%/%monthnum%/%day%/%postname%/ to /blog/%year%/%monthnum%/%day%/%postname%/, if “/blog” is the directory you want your blog to appear in.
  4. This step #4 is not necessary for WordPress 2.0. Navigate to Options » Permalinks and press the button to update your Permalink structure. If your .htaccess file is not writable, you may need to copy and paste the Permalink structure into the .htaccess file.

For users of older WordPress versions

If you’re using any version of WordPress older than 2.0 (i.e. 1.5.x), read this.

Frequently Asked Questions

  1. My template has a home.php file. Will the plugin still use that file?

    Yes. By default, WordPress uses home.php on your home page, and this plugin does not change that behavior. In other words, whatever page you select as the “home” page will use the home.php file as though it were the template for that page. You may also use a custom template for the “home” page, or just the page.php or index.php as normal.

  2. “is_home()” returns true on the “home” page. How can I tell when I’m on the blog’s main page, but not viewing an individual blog post?

    Use this as the test: if (!is_single() && !is_page())

  3. Using the plugin, I now have my blog posts in a “directory” named “/blog,” but the sidebar has disappeared. How can I make the sidebar reappear on the /blog page?

    Some themes use conditional statements in their sidebar.php files so that the sidebar appears only on the “home” page. Try editing your sidebar.php file, replacing something like


    <?php if (is_home()) { ?>
     
    with

    <?php if (!is_single()) { ?>
     
    .

  4. Using the plugin, I now have my blog posts in a “directory” named “/blog,” and I want a link to “/blog” in my sidebar. How can I make a link to “/blog” in the sidebar without manually editing my theme template?

    One way to do this is to create a dummy page with the “Post slug” of “blog” and title of something like “My Blog.” Then it will appear in the list of pages in your sidebar, but when you click the link to “/blog,” WordPress will ignore the dummy page and instead take you to blog “directory.”

  5. I’ve de-activated the plugin, but WordPress acts as though it’s still activated.

    Re-save your permalink settings to flush the rewrite rules cache.

  6. How do I get “Blog” to appear in the title of my “blog” page, instead of just my site’s name?

    Add these lines to your theme’s functions.php file or at the bottom of the plugin file:


    function blog_page_custom_title($a,$b) {
            $t = 'Blog'; // the text to appear in the 'blog' title
            if ( !is_home() && !is_single() && !is_page() ) $a .= " $b $t";
            return $a;
    }
    add_filter('wp_title','blog_page_custom_title',1,2);
     

If you run into any problems or have comments or suggestions, please leave a comment in my support forum or email me at if.website (located at) gmail (dot) com .

See some of the other WordPress plugins I’ve created.
Like this plugin? Is it worth a latte?

My Amazon.com Wish List

This month I have received $57.00 in donations for the free plugins I offer here, which is about $0.14 per download.

65 Trackbacks/Pingbacks

  1. [...] Ok now I had installed Wordpress on my root (I forgot to mention this in my previous post), so my blog was being published to http://sabarish.net, but I wanted that to be my home page address and my blog address to be http://sabarish.net/blog. I created a new page called Home with some static content to be displayed as my home page. I then installed a plugin called Filosofo Home-Page Control which let me control which page is displayed as the home page and which as the blog page. Hat tip: Nandu anna for mailing me that plugin. After this, I had to modify the header.php file of the theme to add a link to point to the Home page and had to modify the blog url to include “/blog”. [...]

  2. [...] A lot of things happened since I last posted, for one I upgraded my Wordpress install to the new release 2.0. With that I actually put in some more effort into the site too. The old image gallery is back, it can be accessed here, it has been redone with a Wordpess plugin called Lazyest Gallery, it sort of takes a simmilar approach as Mig, leaving it to you to arrange your photos in a folder hierarchy, and it’ll display galleries based on it. Another mod, Filosofo Home-Page Control allows me to not show the Blog page as the home page, making this into something more like a website. I use Fold Page Menus in order not to show all the page clutter. And to remove the classic Register/Login links on the sidebar, I use Admin Menu to instead display a bar actross the top of the site. And lastly, a small touch, links get prettyfied (by having icons added to external links among others) via Link Indication. [...]

  3. [...] Se ha discutido mucho sobre las diferencias entre un blog y una web est?tica. Con el pugin Filosofo Home Page Control es posibe combinar el dinamismo e interactividad de un blog con la mejor navegabilidad de una web est?tica al uso. [...]

  4. [...] Con el pugin Filosofo Home Page Control es posibe combinar el dinamismo e interactividad de un blog con la mejor navegabilidad de una web esttica al uso. [...]

  5. [...] Filosofo home page control – allows you to create a wordpress front page and have the journal on a sub page. Just what I was looking for for some of my future site designs here. [...]

  6. [...] Standard i Wordpress r att senaste inlggen i bloggen lggs upp p framsidan. Med insticksprogrammet Filosofo Home-Page Control kan man vlja en statisk sida som framsida. [...]

  7. [...] ??Filosofo Home-Page Control??????????????????What’s New?page???????WP????CMS?? cms homepage page [...]

  8. [...] WordPress plugin: Home-Page Control    ???????????blog [...]

  9. [...] New?page???????WP????CMS?? Posted in Wordpress RSS 2.0 *Name [...]

  10. [...] Wem das zu komplex ist, möge sich das Wordpress Plugin Filosofo Home-Page Control anschauen, auch ok für den gleichen Zweck.   [...]

  11. [...] To install and activate the plugin, download the plugin here, unzip it to your hard drive, then upload it to the wp-content/plugins folder on your server. After that, you’ll want to visit the Plugins page on your control panel, and activate the plugin. If you haven’t done it yet, you’ll need to create a new page that you want to use as your homepage (call it whatever you want). After you do that, click the Options tab, then look for the link called “Home-Page Control.” Once you make it to that page, just assign your chosen page as the home page and click “Save.” [...]

  12. [...] I’ve used a WordPress plugin to set a “static” Page to be the home page of a site. But what if you want both a static site *and* a blog? That plugin didn’t work. Happily, there’s another WordPress plugin, Filosofo Home-Page Control, that does it *so* smoothly and easily. Install plugin. Choose which page to be the home page. Declare the directory you wish for your blog. [...]

  13. Die besten WordPress Plugins – Administration » Tipps zur Suchmaschinenoptimierung…

    Filosofo Home-Page Control
    Allows you to set one of your pages as the home page….

  14. [...] Filosofo Home-Page Control插件下载及详细使用说明点这里。 [...]

  15. [...] Plugin 1: Filosofo Home-Page Control [...]

  16. [...] Plugin 1: Filosofo Home-Page Control [...]

  17. [...] Filosofo Home-Page Control: lets me set a particular page as the home page, and also to separate the blog to a subdirectory, even if it’s at the root level. At first, you don’t get the point, until you realize you can use WordPress to run a regular site by creating pages, then add a blog to a subdirectory later and specify that subdirectory through this plugin. In other words, you run the site pages at http://www.example.com and the blog at http://www.example.com/blog. Really, really nice. [...]

  18. [...] Filosofo Home-Page Control [...]

  19. [...] Filosofo Home Page Control is a plugin that allows a user to alter the default homepage for the WordPress installation. This is in case one doesn’t agree of having the blog as a default WP homepage. [...]

  20. [...] Plugin 1: Filosofo Home-Page Control [...]

  21. [...] Player,Dagon Design Sitemap Generator,DropCap First Character,Filosofo Home Page Control,flickrRSS,Google XML Sitemaps,Gravatar,Highlight Author Comments,WordPress Database [...]

  22. [...] Home-Page Control [...]

  23. [...] Filosofo Home-Page Control- This plug-in lets you put pages on the same Permalink level (or higher) as the blog’s [...]

  24. [...] Plugin 1: Filosofo Home-Page Control [...]

  25. [...] Plugin: Here 43) Filosofo Home-Page Control- [...]

  26. [...] a plugin such as Filosofo Home-Page Control (http://www.ilfilosofo.com/blog/home-page-control) instead. It works fine with WP installed in [...]

  27. [...] Filosofo Home-Page Control: I wanted to move out the blog to the side, and while this seemed a quite straight forward job (add a home.php to the theme and copy the index.php into blog.php, to use that as a template for the blog listing usually does the job) it clashed with K2. And once again I didn’t feel that I wanted to debug or extend other people’s code. Home-Page Control does what it says on the tin: move the blog out into a subfolder, use something else as homepage. [...]

  28. [...] Filosofo Home-Page Control- This plug-in lets you locate pages on the aforementioned Permalink take (or higher) as the [...]

  29. [...] Filosofo Home-Page Control: lets me set a particular page as the home page, and also to separate the blog to a subdirectory, even if it’s at the root level. At first, you don’t get the point, until you realize you can use WordPress to run a regular site by creating pages, then add a blog to a subdirectory later and specify that subdirectory through this plugin. In other words, you run the site pages at http://www.example.com and the blog at http://www.example.com/blog. Really, really nice. [...]

  30. [...] that lets you: … Filosofo home page control – allows you to create a wordpress front page …http://www.ilfilosofo.com/blog/home-page-control/Free XML-RPC blog ping site submitter: &quotBlog Ping&quot Here’s a free, as in beer, Blog Directory [...]

  31. [...] Plugin: Here 43) Filosofo Home-Page Control- This plug-in lets you put pages on the same Permalink level (or higher) as the blog’s directory [...]

  32. [...] Plugin 1: Filosofo Home-Page Control [...]

  33. [...] November 23, 2006 · 70 Comments Plugin 1: Filosofo Home-Page Control [...]

  34. [...] ciertas categorías son usadas con una función que no es precisamente clasificar información. * Filosofo Home-Page Control – Este plugin te permite poner pemalinks en el mismo nivel (o superior) que la raíz de tu blog y [...]

  35. [...] è probabilmente la soluzione più semplice. Questo plugin infatti, ci permette di impostare come home page una qualsiasi pagina che abbiamo creato nel nostro [...]

  36. [...] as a website first, with a secondary blog. I found a plugin which allowed me to do this called Filosofo Home-Page Control which allowed me to set both a home page and a “virtual” location for my blog. If you look at [...]

  37. [...] Filosofo Home-Page Control(0.83下载)作者:Austin Matzko.可以设置你blog里某page或某目录为主页。 [...]

  38. [...] Plugin: Here 43) Filosofo Home-Page Control- [...]

  39. [...] Plugin: Here 43) Filosofo Home-Page Control- [...]

  40. [...] Filosofo Home Page Control. Allows you to change the default homepage for your WordPress install, in case you don’t want your blog as your default WP homepage. [...]

  41. [...] 我一直想弄一个静态首页,就像你们现在看到的这样,ichentao.com是一个front page,ichentao.com/blog才是日志页,这样做的原因是利于统一和扩展新功能,比如搞个/photo放相册什么的,当然这是后话,我的空间还不足以支持一个相册。wordpress的官方论坛里有专门的文章讨论如何建立一个static front page,而我幸运的搜索到一个插件:Filosofo Home-Page Control,很方便,还可以将日志和page放在同一级别,我的意思是,比如about页面,现在的地址是ichentao.com/about,如果按照论坛里说,忙了半天之后可能发现about的地址成了ichentao.com/blog/about,这就不太爽了,不统一了,当然我相信按论坛里的方法一定有解决这个问题的solution. [...]

  42. [...] 然后才是博客.  我找到一个能这样做的插件Filosofo Home-Page Control 它能让我同时设置一个首页和一个”实际”的博客位置. 如果你浏览 [...]

  43. [...] коде. Плагин: Автор плагина: ilfilosofo.com Страница плагина: http://www.ilfilosofo.com/blog/home-page-control Рассматриваемая версия: 2.3 от 12.08.2008 Совместимость с [...]

  44. [...] Plugin: Here 43) Filosofo Home-Page Control- This plug-in lets you put pages on the same Permalink level (or higher) as the blog’s directory [...]

  45. [...] Plugin: Here 43) Filosofo Home-Page Control- [...]

  46. [...] Filosofo Home-Page Control – Este plugin te permite poner pemalinks en el mismo nivel (o superior) que la raíz de tu blog y establecer que página deseamos que se muestre como principal. [...]

  47. [...] Filosofo Home-Page Control: lets me set a particular page as the home page, and also to separate the blog to a subdirectory, even if it’s at the root level. At first, you don’t get the point, until you realize you can use WordPress to run a regular site by creating pages, then add a blog to a subdirectory later and specify that subdirectory through this plugin. In other words, you run the site pages at http://www.example.com and the blog at http://www.example.com/blog. Really, really nice. [...]

  48. [...] Filosofo Home-Page Control – Este plugin te permite poner pemalinks en el mismo nivel (o superior) que la raíz de tu blog y establecer que página deseamos que se muestre como principal. [...]

  49. [...] Filosofo Home-Page Control – Este plugin te permite poner pemalinks en el mismo nivel (o superior) que la raíz de tu blog y establecer que página deseamos que se muestre como principal. [...]

  50. [...] Filosofo Home-Page Control is better than the default features of WordPress because it allows you to have your blog in a [...]

  51. [...] Filosofo Home-Page Control(日本語情報) [...]

  52. [...] Home Page Control von il filosofo. [...]

  53. [...] them into my new version, using a handy Wordpress export and import tool. I’m using the home page control plugin which enables me to run my entire site using one install of Wordpress with the blog entries all [...]

  54. [...] qui marche très bien pour mettre autre chose que le blog en page d’accueil: Home page control http://www.ilfilosofo.com/blog/home-page-control/(C’est ce que j’ai utilisé pour http://cafecafe.ch ou http://dojo-lausanne.com par [...]

  55. [...] qui marche très bien pour mettre autre chose que le blog en page d’accueil: Home page control http://www.ilfilosofo.com/blog/home-page-control/(C’est ce que j’ai utilisé pour http://cafecafe.ch ou http://dojo-lausanne.com par [...]

  56. [...] Filosofo Home-Page Control – Este plugin te permite poner pemalinks en el mismo nivel (o superior) que la raíz de tu blog y establecer que página deseamos que se muestre como principal. [...]

  57. [...] a domain using Wordpress, while still allowing Wordpress to have control over the front-page. The Filosofo Home-Page Control Plugin can also be used on Blogs, which have been installed within the root directory of the [...]

  58. [...] as a website first, with a secondary blog. I found a plugin which allowed me to do this called Filosofo Home-Page Control which allowed me to set both a home page and a “virtual” location for my blog. If you look at [...]

  59. [...] and have all your blog posts be under /blog/ in the url, even when there’s no /blog/ directory! Il Filosofo Filosofo Home-Page Control ____________________________ Freelance graphic designer My music [...]

  60. [...] Filosofo的”Home-Page Control“插件刚好派上用场。这个插件可以让你指定任何一个wordpress页面作为主页。你可以将你的博客部分放到子目录内(比如说my-site.com/blog”)。这个插件的好处在于可以指定任何wordpress页面作为你的主页,而无需摸索着在你的主题目录内添加一个”home.php”文件。所有的一些都可以在管理面板内处理。赞。 [...]

  61. [...] le plugin: Ici 43) Filosofo Home-Page Control- Ce plugin vous permet de mettre des pages reliées au même niveau de permalien et de décider [...]

  62. [...] le plugin: Ici 43) Filosofo Home-Page Control- Ce plugin vous permet de mettre des pages reliées au même niveau de permalien et de décider [...]

  63. [...] Plugin 1: Filosofo Home-Page Control [...]

  64. [...] Filosofo Home-Page Control – Este plugin te permite poner pemalinks en el mismo nivel (o superior) que la raíz de tu blog y establecer que página deseamos que se muestre como principal. [...]

  65. [...] Filosofo Home-Page Control – Este plugin te permite poner pemalinks en el mismo nivel (o superior) que la raíz de tu blog y establecer que página deseamos que se muestre como principal. [...]

276 Comments

  1. David Russell commented on January 1, 2006 at 4:10 pm | Permalink
    David Russell

    This looks very god – I might look into it in a week or two (I am too busy at the moment) – I’ve been wondering about turning WP into a CMS for awhile now, since I need a personal website as well as a blog.

  2. Lincoln Mullen commented on January 8, 2006 at 11:27 pm | Permalink
    Lincoln Mullen

    Thanks for this plugin. I’ve used it as you suggested to make WordPress a CMS for my home church’s website. It makes things much easier for the pastor to update the website on his own.

    I use your JavaScript Extract plugin on my personal blog as well. Thanks for that one too.

  3. Edmund Pelgen commented on January 16, 2006 at 10:20 am | Permalink
    Edmund Pelgen

    Hi, I am attemting to set this plugin up and when I go to set the new home page under Options Home Page Control, I receive the following error.

    Cannot load filosofo-home-page-control.php.

    Note permalinks are working fine on this web site.

    Any help would be greatly appreciated.

    Cheers
    Ed

  4. filosofo commented on January 16, 2006 at 10:46 am | Permalink
    filosofo

    Ed, what version of WordPress are you using?

    To what link does the Options > “Home-Page Control” tab point? It should look like http:// [your site] /wp-admin/options-general.php?page=filosofo-home-page-control.php

    Are the file permissions of the plugin file set so that it’s readable?

  5. Edmund Pelgen commented on January 16, 2006 at 3:54 pm | Permalink
    Edmund Pelgen

    Hi Filosofo,

    I am using WP 2.0 which is set up by Fantastico on Bluehost.

    The link points to:

    http://localstoremarketing.biz/wp-admin/options-general.php?page=filosofo-home-page-control.0.6.7/filosofo-home-page-control.php

    Note the small difference to your link…I guess is the version no?

    Also I checked file permissions and yes they are readable by User/Group/World. Can only be written by User, and no execution rights by user/group or world.

    I hope this helps.
    Cheers ang thanks

    Ed

  6. filosofo commented on January 16, 2006 at 5:33 pm | Permalink
    filosofo

    The plugin file itself should be named filosofo-home-page-control.php and be sitting in the wp-content/plugins directory; it should not be in another directory (such as filosofo-home-page-control.0.6.7). That may be what is causing you a problem.

  7. Edmund Pelgen commented on January 16, 2006 at 8:20 pm | Permalink
    Edmund Pelgen

    THis did the trick. Maybe I should read the install instructions better :)

    Thanks for your help and for this great plugin.

    Cheers

    Ed

  8. Donovan Watts commented on January 27, 2006 at 12:42 am | Permalink
    Donovan Watts

    hi. thanks for this plugin. it’s great. i wonder if you have tried it with the ol_feedburner plugin? i can’t seem to get the two to behave together. it seems that instead of redirecting my visitors to feedburner, they get redirected to /feeds/ on my site instead. – donovan.

  9. filosofo commented on January 27, 2006 at 6:47 am | Permalink
    filosofo

    Donovan, what version of WordPress are you using?

  10. vanessa commented on January 28, 2006 at 10:33 pm | Permalink
    vanessa

    Hi, I’ve installed this plugin and activated it successfully. I went into the options and set my “home” page as home, instead of my blog but for some reason it doesn’t seem to work. When you click on “home” in the menu it takes you there, but it’s not the default page. Any ideas as to what might be going wrong?

  11. filosofo commented on January 28, 2006 at 10:43 pm | Permalink
    filosofo

    Vanessa, looking at your site it seems you don’t have permalinks activated.

  12. Donovan Watts commented on January 31, 2006 at 10:38 pm | Permalink
    Donovan Watts

    Hi. I’m using 2.0. Going to upgrade to 2.0.1 in an hour or so. I’ll subscribe to the RSS feed for these comments so I can remember to followup on this. Thanks.

  13. Michael commented on February 3, 2006 at 4:03 pm | Permalink
    Michael

    First of all: Many thanks for your plugin, it is a great solution for using a static front page.
    However, I am having one issue:
    When the home of your blog entries is being displayed, the wordpress functions previous_posts_link() and next_posts_link() provide a wrong url.

    Example:
    http://www.mysite.com. Blog directory that is set in the Home-Page-Control options is “blog” (so the blog directory is http://www.mysite.com/blog/)
    When loading http://www.mysite.com/blog/ and clicking the output url of next_posts_link(), a 404 error occurs. The URL being generated by next_posts_link() is http://www.mysite.com/blog/page/2/. But WordPress expects http://www.mysite.com/page/2/ (without the “blog” inside the URL).
    Hmm, I think about using a RewriteRule to solve this issue. Or do you have any other suggestion?

  14. Michael commented on February 3, 2006 at 4:23 pm | Permalink
    Michael

    OK, just created a RewriteRule that works so far:

    **IfModule mod_rewrite.c##
    RewriteEngine On
    RewriteBase /
    RewriteRule ^blog/page/([0-9]+)/$ /page/$1 [L,R]
    **/IfModule##

    (replace ** and ## with angle brackets)

  15. filosofo commented on February 3, 2006 at 5:56 pm | Permalink
    filosofo

    Michael, that’s very similar to what I have:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^blog/page/?([0-9]{1,})/?$ /index.php?&paged=$1 [QSA,L]
    </IfModule>
    

    I’ll see what I can do about incorporating that into the plugin.

  16. filosofo commented on February 3, 2006 at 7:04 pm | Permalink
    filosofo

    Okay, Michael. I’ve updated the plugin to version .7 so that now it should create the necessary rewrite rules automatically.

  17. Michael commented on February 4, 2006 at 8:55 am | Permalink
    Michael

    Great, thanks a lot, Austin. It’s working perfectly.

  18. Rachel C commented on February 7, 2006 at 2:31 pm | Permalink
    Rachel C

    Hi Michael, great plugin thanks. I noticed one weird thing: in WP 2.0.1 when I save a post, I cannot preview it, it just shows the home page, not the post. Any ideas what can be done about this?

  19. Rachel C commented on February 7, 2006 at 3:17 pm | Permalink
    Rachel C

    Oops I meant filosofo :)

  20. filosofo commented on February 7, 2006 at 11:48 pm | Permalink
    filosofo

    Rachel, I think I’ve fixed the problem in what I’ve just uploaded as version 7.1.

    You’ll need to re-save your settings under Options > Home-Page Control to clear the cached rewrite rules.

  21. Rachel C commented on February 8, 2006 at 4:03 pm | Permalink
    Rachel C

    Thanks – I gave that a go and resaved my settings but nothing changed? Is there anything else I should do?

  22. Michael commented on February 14, 2006 at 3:28 pm | Permalink
    Michael

    I was having a similar issue like Rachel has described: when I created a new post and saved it (not published), the preview just displayed a search result with the message “no hits”…
    But I just have upgraded to .72, and now it works.
    Austin, thanks again for this great plugin.

  23. Jason Marble commented on February 16, 2006 at 2:20 pm | Permalink
    Jason Marble

    This plugin doesn’t seem to work correctly if used with the permalink redirect by Scott Yang. Once the permalink redirect plugin is activated, when I attempt to navigate to the “blog directory”, I’m redirected to the main home page.

  24. filosofo commented on February 16, 2006 at 6:41 pm | Permalink
    filosofo

    Jason, here’s a patch for the permalink plugin that seems to work for me:

    14c14
    < is_comments_popup())

    > is_home() || is_comments_popup())

    In other words, change line 14 so that it returns on the blog index page.

  25. Jason Marble commented on February 17, 2006 at 12:52 pm | Permalink
    Jason Marble

    Works great. Thanks buddy.

  26. Rachel C commented on February 19, 2006 at 1:18 am | Permalink
    Rachel C

    Hi again :) Will this plugin work with the Wordpress search box?

  27. filosofo commented on February 20, 2006 at 12:04 am | Permalink
    filosofo

    Rachel, I see the problem and will have a fix up in the next day, hopefully.

  28. filosofo commented on February 20, 2006 at 9:14 am | Permalink
    filosofo

    Okay, .73 should solve the problem.

  29. Steve commented on March 17, 2006 at 7:35 pm | Permalink
    Steve

    Thanks for this plug-in. It seems to be just what I needed. I want to have a static front page and a menu link to the normal blog. Everything works as it should except on then new /blog page, the side bar is missing. I am using the k2 theme. How do I get the side bar back on the blog page?

  30. filosofo commented on March 21, 2006 at 6:32 pm | Permalink
    filosofo

    Steve, to decide whether to print the typical sidebar stuff, the k2 theme checks to see whether the is_home() function returns true (and it checks some other things as well). The way I’ve designed the plugin, is_home() returns true for the home page, which is whatever you set it to be, instead of the /blog page.

    Look in the k2 theme’s sidebar.php file, and you can modify the if . . . else statements for your needs.

  31. Mark commented on March 25, 2006 at 3:35 pm | Permalink
    Mark

    Hi,
    I’ve just installed the Home-Page Control plugin. I created a page called “Home” and set it to be the homepage, but it seems to ignore me and wants to make a blog entry the homepage. I pressed the button to update the permalink structure but to no avail. Any ideas what might be wrong? I’m using 2.0.2 of WordPress and 0.7.3 of the plugin.

  32. filosofo commented on March 25, 2006 at 3:53 pm | Permalink
    filosofo

    Mark, under Manage > Posts and Manage > Pages in the admin control panel, you can see the ID numbers for blog entries and pages. What’s the ID of the page you want to be the home page, and what’s the ID of the post that’s being made the blog page? Can you link to your site?

  33. Mark commented on March 25, 2006 at 4:11 pm | Permalink
    Mark

    Hi,
    Thanks for replying so soon. The page I want to be the homepage is ID 9:
    http://www.synergee.co.uk/synergee/?page_id=9

    The page that appears is this one which seems to show all the blogs?
    http://www.synergee.co.uk/synergee

  34. filosofo commented on March 25, 2006 at 4:41 pm | Permalink
    filosofo

    Mark, it doesn’t look as though you have permalinks enabled, and they must be in order to use this plugin (with permalinks, the link to your pages would look something like http://www.synergee.co.uk/synergee/home/ instead of http://www.synergee.co.uk/synergee/?page_id=9 ).

  35. Mark commented on March 25, 2006 at 5:38 pm | Permalink
    Mark

    Hi,
    I selected an alternative permalink structure (other than the default) and it now works fine. Many thanks for your help.

  36. suppaman commented on April 15, 2006 at 2:48 am | Permalink
    suppaman

    filosofo it seems that, as of now, the download links for .zip and .tar.gz are broken.

  37. suppaman commented on April 15, 2006 at 9:13 am | Permalink
    suppaman

    update: they work

  38. frank commented on April 17, 2006 at 8:05 pm | Permalink
    frank

    hi,

    i installed the plugin, switched it on but nothing happened. it just working when i change the permalinks style from default to numeric. but then then the whole site is unstyled and my navigation is uncompleted.

    any chance to get this runing by using the default permalinks?

    thanks
    frank

  39. filosofo commented on April 17, 2006 at 8:48 pm | Permalink
    filosofo


    any chance to get this runing by using the default permalinks?

    No. With the “default” permalinks WordPress turns off the internal rewrite rules, so the plugin will not work.

  40. frank commented on April 17, 2006 at 9:16 pm | Permalink
    frank

    thanks for your reply. but the next questions would be, how can i make my site working with “numeric” permalinks? that is probably not really related to you plugin, but maybe you have an answer though.

    when you see this
    http://www.wds-institut.de/test

    and click the navigation, that you will see that all pages link to an subfolder. i was able to fix the css problem, but still all images are missing and my subnavigation is missing too, because of the changed path.

    thanks
    frank

  41. filosofo commented on April 17, 2006 at 9:24 pm | Permalink
    filosofo

    frank, it sounds like you need to make your image paths absolute instead of relative. Try using the WordPress bloginfo function to make absolute paths.

  42. Martin Hiegl commented on April 23, 2006 at 6:48 am | Permalink
    Martin Hiegl

    Thanks for this excellent plugin. I’ve got still the problem, that the feed doesn’t move with the blog into another sub-directory. So I#ve got the blog with help of your plugin in name.tld/blog/ and the feed is still at name.tld/feed/ instead of name.tld/blog/feed/.
    How can I fix that?

  43. Martin Hiegl commented on April 23, 2006 at 9:47 am | Permalink
    Martin Hiegl

    And another problem: when using the get_posts tag in the new home page it doesn’t list the blog posts. Instead it lists the home page as many times, as there would be blog posts. The site: http://motopaedagogik.eu
    It’s German, but where it says “Die letzten Artikel” (the latest articles) on the right side, there it should list the two articles instead of two times “home”.

  44. Susan commented on May 7, 2006 at 11:07 pm | Permalink
    Susan

    I would like the homepage to use home.php, and the weblog to reside at http://www.site.com/weblog. However, http://www.site.com/weblog seems to pick up the home.php template instead of the index.php…is that to be expected? Can I make the homepage use home.php, and http://www.site.com/weblog use index.php instead?

    Thanks, Susan

  45. filosofo commented on May 8, 2006 at 2:18 am | Permalink
    filosofo

    I’ve updated the plugin to address Martin Heigl’s feed question and Susan’s home.php problems.

  46. Martin Hiegl commented on May 8, 2006 at 4:54 am | Permalink
    Martin Hiegl

    Thanks very much! But with the Changes for Susan in the function set_is_home() it doesn’t work for those, who want to have another template than index.php for their start page, anymore. Therefore I took that function from the “old” version.

    Do you have any idea concerning my second problemfrom above?

  47. Susan commented on May 8, 2006 at 8:01 am | Permalink
    Susan

    filosofo,
    First of all, thank you for the help, and even moreso for the quick help to my question. I should back up and point out that this is my first WP site, so I’m wading through uncharted (for me) waters. :) This morning I downloaded 0.74 and FTP’ed it over 0.73. I’m not sure if that is the correct way to upgrade a plugin. I noted under Plugin Management that it now shows as version 0.74. However, I still see the same problem. You can see the site under development here:
    http://dev3.netblazon.com/
    The weblog is here:
    http://dev3.netblazon.com/weblog/
    However, the weblog should show the normal last X number of posts (currently there are only 2 posts, not counting 3 posts in the “calendar events” category that only appear for the Event Calendar plugin). Unfortunately it’s still using the home.php template.

    Options for Home-Page Control are “Wordpress Default” and “weblog”.

    I didn’t want to use a page for the homepage, because (1) the page editor tries to mangle an empty div tag in the source code, and (2) the homepage uses a slightly modified header.

    Thanks!

  48. filosofo commented on May 8, 2006 at 8:33 am | Permalink
    filosofo

    I should have said that you’ll probably need to re-save the plugin’s settings under Options > Home-Page Control, in order to clear WordPress’s permalink cache.

    If both of you do that with version .74 and you’re still having problems, please let me know.

  49. Susan commented on May 8, 2006 at 10:32 am | Permalink
    Susan

    Just tried that, even changed the settings, and then changed them back just to make sure. I still have the same issue. Since this is just a dev site I can grant you access if you want to try it. If you need FTP access I’ll need a few hours to have my host set up a limited account with access to just that part of the filesystem though. Let me know what would help…I’ll grant whatever is needed. Thanks!
    PS – just to make sure I triple-checked the plugins page to make sure it said 0.74 :)

  50. filosofo commented on May 8, 2006 at 1:24 pm | Permalink
    filosofo

    Okay, I inadvertently introduced an error into version .74. I’ve put back version .73 until I can fix the mistake in .74 later today. Sorry about that.

  51. Jon Kristian commented on May 8, 2006 at 6:02 pm | Permalink
    Jon Kristian

    Hia Filosofo:-)
    Im using .74 of this neato plugin. Im not sure if this is the case, but it seems to me that the plugin ignores my page template. It uses the index.php instead of my edited template for the front-page. If this is the case, is there anything i can to do to make it use the template for my front page?

    My permalink strukture is;
    /archives/%post_id%
    And the Blog Directory is empty…

    Regards
    Jon Kristian

  52. Jon Kristian commented on May 8, 2006 at 6:04 pm | Permalink
    Jon Kristian

    Whoops. I missed that last post of yours, turning back to .73 fixed my problem. Thanx.

  53. filosofo commented on May 8, 2006 at 11:17 pm | Permalink
    filosofo

    Try version .75–I think I’ve fixed the above-mentioned problems.

  54. Jon Kristian commented on May 9, 2006 at 7:20 am | Permalink
    Jon Kristian

    No, it still ignores the page template for the front page…

  55. filosofo commented on May 9, 2006 at 9:23 am | Permalink
    filosofo

    Jon, could you describe in more detail the problem? Are you saying you have a home.php file in your theme that is not being used for the “home” page?

    When you say “the Blog Directory is empty,” do you mean the blog directory field under Options > Home-Page Control is empty or just that an actual directory of that name does not exist in the file system? Have you selected a page for Home-Page Page under Options > Home-Page Control, or is it set to “WordPress default”?

  56. Jon Kristian commented on May 9, 2006 at 12:06 pm | Permalink
    Jon Kristian

    It’s a template file for the page called home, which i set to be the front page in your plugin. The problem is, that the template;

    It doesn’t get picked up by the plugin, s the page uses the index.php instead of that template.

    I hope you understand more now…
    .73 works though, i have no problem with it…

  57. filosofo commented on May 9, 2006 at 5:43 pm | Permalink
    filosofo

    Ah, I see. I wasn’t thinking that anyone would be using a template other than home.php. Version 0.77 of the plugin should now choose from the following list the first template file that exists:

    home.php
    [whatever custom template you've assigned to the home-page page]
    page.php
    index.php

  58. Jon Kristian commented on May 9, 2006 at 6:10 pm | Permalink
    Jon Kristian

    Yes. Im not sure if this is true, but the reason i made a page and a page template is that i thought making a home.php makes it impossible to edit from inside the wordpress admin area?? The people running the site needs to be able to change content easily, can one do that when using your suggestion?

  59. filosofo commented on May 9, 2006 at 6:16 pm | Permalink
    filosofo

    home.php is just like any other template file (such as page.php, single.php, index.php, and custom files), in that whether it uses editable pages is up to you. It differs from the others in that it is used only when is_home() returns true.

  60. Jon Kristian commented on May 9, 2006 at 6:52 pm | Permalink
    Jon Kristian

    Ohh, I c, thank you for the explaination, im gonna do that :-)
    And thank you for a great plugin!

    Regards
    Jon Kristian

  61. orangeacid commented on May 11, 2006 at 6:28 am | Permalink
    orangeacid

    This looks very interesting and exactly what I have been looking for for some time. I will look into in soon… thanks in advance :)

  62. Jim commented on May 12, 2006 at 7:09 pm | Permalink
    Jim

    I too wanted to thank you for the plugin.

    I do have one issue. It seems that the WP function is_home() does not work anymore. I was hoping to use the is_home() function to access the new blog URL, but it is always returning false regardless if I am on my new home page or my blog. This function is needed to highlight the tab of the current page.

    Here is a code snippet I was trying:

    blogs

    blogs

    Any ideas?

    Thanks,

    Jim

  63. Jim commented on May 12, 2006 at 7:12 pm | Permalink
    Jim

    I forgot my code tags on the last past for my example code. Here that is again…

      < ?php if (is_home()): ?>
      < ?php wp_list_pages('..'); ?>
    • blogs
    • < ?php else : ?>
      < ?php wp_list_pages('...'); ?>

    • blogs
    • < ?php endif; ?>

  64. filosofo commented on May 13, 2006 at 12:13 am | Permalink
    filosofo

    Jim, I can’t reproduce the problem: the code you provided works for me.

    Is the address in “WordPress address (URI):” under Options > General the same as your “home” page?

  65. Jim commented on May 13, 2006 at 12:53 am | Permalink
    Jim

    filosofo,

    Thanks for the quick reply! The WordPress Address (URI) is set to my site’s default page which is currently a static page that I designated via your plugin.

    So I guess the issue is that I need a way to capture that I am on the blog page which is no longer my default or “home” page. I was hoping the “is_home()” function would still do this. If the “is_home” actually captures my new static home page and my blog does not have a page id because it really is not a page, how do I do this?

    My goal is to have a site with dynamic tabs where the home page is static and the default Wordpress blog is a different tab.

  66. filosofo commented on May 13, 2006 at 1:28 am | Permalink
    filosofo

    If I’m understanding you correctly, you want the lists above to appear on your blog’s main page, but not for single posts or pages.

    In that case, you should replace “is_home()” with “!is_single() && !is_page()

  67. Jim commented on May 13, 2006 at 2:04 am | Permalink
    Jim

    I apologize for not being clear.

    What I am doing is using tags to create header tabs.

    In WP, when you call the wp_list_pages() function, if will create a list of every active page on your site like below:

    WP automatically lets the browser know what list item is the current page by giving the current page a class of “page_item current_page_item”. So in the above example, the user clicked on the “About” page. Since the class was updated, we are able to highlight “About” to the user to let him know what the current page is.

    By default, the WP home page is not a page at all, so it is not included with the wp_list_pages() function by default. We get around this by using the is_home() function to determine if we are on the home page.

    However, with this plugin, our home page is now an actual page in our wp_list_pages() list, but the blog page still is not part of this list. If we can no longer use the is_home() function for our blog page, how do we determine if a user has selected the blog url?

    Here is an example where the tabs work because the home page is my blog: http://www.cyfairrealestate.com/

    Here is the current site I am working on where the home page is static and the blog is under a different tab. You will notice that I am unable to change the display of the “blogs” after it is selected because I am not sure how to determine that: http://www.praexis.com/wordpress/

    You have been more than generous with your help already. I really do appreciate it.

  68. filosofo commented on May 13, 2006 at 2:36 am | Permalink
    filosofo

    Try what I suggested above, i.e.:

      < ?php if (!is_single() && !is_page()): ?>
      < ?php wp_list_pages('..'); ?>

  69. blogs
  70. < ?php else : ?>
    < ?php wp_list_pages('...'); ?>

  71. blogs
  72. < ?php endif; ?>

    The “blogs” line will show up on the blog main page with the “current_page_item” class.

  73. Martin Hiegl commented on May 13, 2006 at 7:23 am | Permalink
    Martin Hiegl

    another Workaround:

    if(wp_title(”, false)){

    }
    else {
    //former is_home()-area
    }

  74. Jim commented on May 13, 2006 at 8:33 am | Permalink
    Jim

    filosofo! You Rock!!! I obviously should have listened to your suggestion the first time around, but I thought we were talking about different things.

    I added the if (!is_single() && !is_page()) code and it worked like a champ!!!

    I really do appreciate all of your help! I never would have figured this out my own.

  75. orangeacid commented on May 14, 2006 at 8:13 pm | Permalink
    orangeacid

    Hi there. I installed your plugin about an hour ago, but I am now having some serious problems getting things to work properly.

    I have wordpress installed in a directory called blog, and I followed the instructions here to link the root (www.orangeacid.net) to it. Then i insalled your home page tool and set the directory of the main blog page to ‘blog’ and updated the permalinks accordingly.

    However, both the permalinks and the /blog/ directory now give the following error:

    Warning: main(./home/orangeac/public_html/blog/wp-blog-header.php): failed to open stream: No such file or directory in /home/orangeac/public_html/blog/index.php on line 4

    Warning: main(./home/orangeac/public_html/blog/wp-blog-header.php): failed to open stream: No such file or directory in /home/orangeac/public_html/blog/index.php on line 4

    Fatal error: main(): Failed opening required ‘./home/orangeac/public_html/blog/wp-blog-header.php’ (include_path=’.:/usr/local/lib/php:/usr/lib/php’) in /home/orangeac/public_html/blog/index.php on line 4

    Do you have any idea how I can get around this? I got it at one point to work so that permalinks displayed the main blog page, but this obviously isn’t what I intended.

    Any help would be very much appriciated.

    Thanks,

    Dan Foy

  76. filosofo commented on May 14, 2006 at 10:57 pm | Permalink
    filosofo

    Dan,

    In your blog’s index.php file, you either need to leave off the “.” and go with the absolute path like so:
    require('/home/orangeac/public_html/blog/wp-blog-header.php');

    or you can use the “.” and have a relative path like so:

    require('./blog/wp-blog-header.php');

    But when you try to do both, you’re pointing to a file at

    /home/orangeac/public_html/home/orangeac/public_html/blog/wp-blog-header.php

    which I bet doesn’t exist.

  77. orangeacid commented on May 15, 2006 at 3:05 am | Permalink
    orangeacid

    Thanks man :D

    Perfect plugin :) Great customer service too lol. Much reccomended :D

  78. Joost commented on May 15, 2006 at 5:23 am | Permalink
    Joost

    Installed the plugin but somehow I get the blogs’ sidebar in my new (static) homepage but this sidebar has now disappeared from the blogshome, where I actually want to have it.

    Somebody out there to give me the hint how to change this?

    thanks,joost

  79. filosofo commented on May 15, 2006 at 10:21 am | Permalink
    filosofo

    Joost, there’s probably a conditional statement deciding whether the sidebar appears that looks something like if (is_home()). Replace that with if (!is_single() && !is_page()).

  80. Susan Kitchens commented on May 17, 2006 at 10:16 pm | Permalink
    Susan Kitchens

    I’ll add my enthusiastic thanks for this plugin to the other ones here. (Had been using a different static-home-page plugin, but it wouldn’t do both home page and blog, too.)

    I see the above-mentioned comments about adding a link to “Blog” with the wp_list_pages() function. That gets me to about 95% of the way to what I want to do, except (you knew this was coming, right?) for the order.

    I’m using the argument to list pages by menu order, so that I can list pages a certain way:
    [Home | About Me | Clips | Resources | Contact]
    That means that I’d have to list blog either before the list or (more probably) after the list. What if I want to insert Blog into the list as item #2, like so:
    [Home | Blog | About Me | Clips | Resources | Contact ] ?
    Is that possible?

  81. Susan Kitchens commented on May 17, 2006 at 10:44 pm | Permalink
    Susan Kitchens

    Er, in answer to my own question, here’s a way I solved it. I think I’d have to make another set of IF statements for the if it’s home, then sort the classes this way or that way.

  82. Navigation

    • < ?php if (!is_single() && !is_page()): ?>

  83. Home
  84. Blog
  85. < ?php wp_list_pages('exclude=70&sort_column=menu_order&title_li='); ?>
    < ?php else : ?>

  86. Home
  87. Blog
  88. < ?php wp_list_pages('exclude=70&sort_column=menu_order&title_li='); ?>
    < ?php endif; ?>

    Comments?

  89. Susan Kitchens commented on May 25, 2006 at 2:36 pm | Permalink
    Susan Kitchens

    Has anybody here been able to get this plugin to work with the Email Notification plugin, as well?

  90. filosofo commented on May 25, 2006 at 8:06 pm | Permalink
    filosofo

    What seems to be the problem, Susan?

  91. Susan Kitchens commented on May 25, 2006 at 10:01 pm | Permalink
    Susan Kitchens

    With your plugin all on its own, nothing…. But I also tried installing the email notification plugin, and it doesn’t work. (or it works in spotty fashion) I tried disabling all the plugins to see if there was any change with the Email Notification Plugin. Nope. I didn’t go so far as to figure out how to purge the htaccess, as the home and blog still worked as though Home Page Control were still active.

    I have no idea if invoking the plugin in the page headers of a file would make something work, or if toying with home page and blog page in a separate directory would interfere with the workings of it. So I thought I’d come by and inquire.

  92. Fred commented on May 30, 2006 at 2:43 pm | Permalink
    Fred

    Hi there, I’ve installed this plugin and it rocks. I have just one problem. The rewrited URL’s for the feeds are not working for me. My setup is very simple:

    http://url.com/ -> main site
    http://url.com/blog -> blog

    The rewrited feed are

    http://url.com/blog/feed/ (give me a 404)
    http://url.com/comments/feed/ (works nicely)

    Any idea? 10x

  93. filosofo commented on May 31, 2006 at 2:06 pm | Permalink
    filosofo

    Fred, good point. Links like http://url.com/blog directory]/feed/rss have been working, but not just [blog directory]/feed/.

    I’ve fixed it and uploaded it as version .78.

    You can even see it working here on my blog:
    http://www.ilfilosofo.com/blog/feed/

    After you upload the newer version of the plugin you’ll need to re-save your blog directory under Options > Home Page Control in order to flush WordPress’s rewrite rules cache.

  94. laender commented on June 6, 2006 at 12:18 pm | Permalink
    laender

    Cool :) Thats a nice plugin and I think I will install it right now…

  95. Judi commented on June 9, 2006 at 8:59 am | Permalink
    Judi

    I’m using a custom page template and it’s not recognizing it. I even changed all my pages and edited the default page template – still not working.

    home page is http://secret-pal.com and I have it set to point to http://secret-pal.com/front

    I’m using WP 2.0.2 and 0.7.8 of the home page control plugin. What do I do to fix it?

  96. Judi commented on June 9, 2006 at 11:09 am | Permalink
    Judi

    Ok,I got it figured out. I took my template for that “page” and put it in my home.php file. Simple, and only stumbled upon the fix by accident. But hey, it’s there and it works.

    Great plugin – does exactly what I wanted/needed! Kudos!

  97. Kimberly commented on June 13, 2006 at 9:42 am | Permalink
    Kimberly

    Hi there, My host server just recently moved the website to another and what was working perfectly is now not working at all and I am not sure how to fix it. I have a “home” page that is linked to their index page (cdcwestern.ca) and as well I would like the “about page” to be the page people see as soon as they enter the wordpress portion. Finally, now I cannot get the blog page to show. Any thoughts? My pages & catergories seems to be mucked up as well.

  98. filosofo commented on June 13, 2006 at 10:04 am | Permalink
    filosofo

    Kimberly, my guess is that the WordPress .htaccess file didn’t get moved to your new server.

  99. Kimberly commented on June 14, 2006 at 10:03 am | Permalink
    Kimberly

    Thank you for your response. I did create another.htaccess file and it does have the information in it, but I still cannot get the permalinks to works correctly nor open to the about page instead of the blog. So I am changing the links in their main site to open to the about page directly. I have this plugin in my own business site, but I just can’t seem to get it to work now for cdc.

    Thanks

    Kimberly

  100. Michael Mahoney commented on June 14, 2006 at 2:08 pm | Permalink
    Michael Mahoney

    OK, so I’m very new to WordPress, and struggling a little, but your plug-in is exactly what I was hoping to find. I’m having trouble figuring out one aspect, however. I’ve scanned these comments, and I don’t believe this is answered yet (sorry if I just missed it).

    I’ve made a Page, called Home, and it comes up when you first navigate to the site. It uses the home.php template that I created, from which I’ve removed the sidebar and footer. (I will add a link to the blog back in later.) To reach the blog right now, I use http://www.twigbud.com/blog, which works great. So far, so good.

    The problem is that then, in the sidebar on the Blog page, I get a list of Pages, currently consisting of one Page, namely the Home Page that I created. Great. But when I click that link, it goes to http://www.twigbud.com/home, which shows the Home Page, but instead of using the home.php template, it uses the default blog template instead.

    What I would like to have happen, is when you click that link, it simply takes you back to the root directory (http://www.twigbud.com/), and displays my Home Page, in the correct home.php template.

    Is there a way to do this? And thank you so much for a wonderful piece of software that makes all of our lives easier!

  101. filosofo commented on June 14, 2006 at 4:10 pm | Permalink
    filosofo

    Kimberly,
    You may just have them turned off temporarily because of the problems you’re having, but permalinks can’t be de-activated (i.e. set to “Default”) if you want this plugin to work.

    I also noticed that your “blog” link seems to be showing some PHP, which shouldn’t be happening, so perhaps you’re missing some < ?php ... ?> tags somewhere?

  102. filosofo commented on June 14, 2006 at 4:15 pm | Permalink
    filosofo

    Michael, I’m guessing that you’re using the function “wp_list_pages” to show those page links. To replace http://www.twigbud.com/home with http://www.twigbud.com/, stick the following at almost the end of the plugin file (but right before the ?>):

    add_filter('wp_list_pages',
    create_function(’$a’,'return str_replace(”http://www.twigbud.com/home”,”http://www.twigbud.com/”,$a);’));

  103. filosofo commented on June 19, 2006 at 10:59 pm | Permalink
    filosofo

    I’ve uploaded version .79 to fix a feed bug.

  104. Daryl commented on June 27, 2006 at 9:53 pm | Permalink
    Daryl

    This plug-in does exactly want I want to do (thanks), but I’m having some problems with implementation.

    I’m trying to set it up as:

    http://www.gptshop.com
    http://www.gptshop.com/news/

    It seems to work ok with the default wordpress theme, but behaves strangely with K2 – it looks like it wants to have both ‘home’ page and blog as the homepage. The menu bar link ‘blog’ has the URL as http://www.gptshop.com and the link for page ‘home’ is http://www.gptshop.com/home/.

    As far as I can tell, I have the permalinks set correctly as: /http:/gptshop.com/news/sample-post/

    Any advice/help would be welcome :)

  105. filosofo commented on June 27, 2006 at 10:39 pm | Permalink
    filosofo

    Daryl, look in the header.php file in the k2 directory, and I think you’ll see that it’s hard-coded to link “Blog” to the “home” url (the link is < ?php echo get_settings('home'); ?>)

    So you’ll have to edit the header yourself to point to the correct urls.

  106. Matt commented on June 30, 2006 at 5:26 am | Permalink
    Matt

    Hi, I’ve just instaaled the plugin and it’s mostly working great, except that I’m having the same problem as Steve way back in March:

    Everything works as it should except on then new /blog page, the side bar is missing. I am using the k2 theme. How do I get the side bar back on the blog page?

    You advised to:

    look in the themes sidebar.php file, and you can modify the if . . . else statements for your needs.

    However my PHP skills are somewhat shaky, so I was wondering exactly how one did that. I’m using the Blix theme.

    Thanks!

  107. Kris Khaira commented on July 3, 2006 at 6:30 am | Permalink
    Kris Khaira

    If you want to make a menu link to the Blog/News section, make an empty page with the same name as the blog e.g. “Blog”. The menu link will appear but it will go to the blog, not the empty page.

  108. Matt commented on July 3, 2006 at 11:02 am | Permalink
    Matt

    Thanks for your reply Kris. I figured that bit out, but what I can’t work out is how to make the sidebar (with links, categories etc) appear on that new blog page. Any ideas?

  109. filosofo commented on July 3, 2006 at 8:44 pm | Permalink
    filosofo

    Matt, the sidebar doesn’t show up on the /blog page because there’s this line in the sidebar.php file of the Blix theme: < ?php if (is_home()) { ?>

    That tests to see whether it’s the “home” page before showing the sidebar, but when you’re using this plugin, the /blog “directory” is no longer the “home” page.

    So to show the sidebar in the /blog directory, try changing < ?php if (is_home()) { ?> to something like < ?php if (!is_single()) { ?>

  110. Matt commented on July 4, 2006 at 3:25 am | Permalink
    Matt

    Hi filosofo, thanks for your help – that worked a treat. Matt

  111. 3stripe commented on July 11, 2006 at 3:06 pm | Permalink
    3stripe

    Nice plugin :)

    Question: I’m using http://www.adsworth.info/wp-pagesnav to output a list of pages for my navigation div. The url for my homepage still appears as /home/ in this list… is there anyway around this?

    Keep up the good work

    3stripe

  112. 3stripe commented on July 11, 2006 at 3:09 pm | Permalink
    3stripe

    What I meant was, the url for the homepage should really point to the root, and not /home/ … if that’s possible?

  113. filosofo commented on July 11, 2006 at 5:51 pm | Permalink
    filosofo

    3stripe, try adding this to the bottom of the plugin, right before the final ?>:

    add_filter('page_link',create_function('$a,$b','$c = get_option("filosofo_hpc"); if ($c["pageselected"] == $b) { return get_settings(”home”); } else { return $a; }’),10,2);

    In fact, I like it so much I think I’ll roll it into the plugin.

  114. 3stripe commented on July 12, 2006 at 10:25 am | Permalink
    3stripe

    Coolio :)

  115. Alex Kenjeev commented on July 27, 2006 at 4:07 pm | Permalink
    Alex Kenjeev

    Hi,

    I love your plugin but I’m having problems! (My own fault, I’m a beginner)

    Either I can have a front page, OR I can have a blog. Both together simply don’t work after hours of trying. I put the blog in “/site” (according to the WP tools, though there’s no such directory in FTP for some reason). I called my static front page “index.php” and put it in the root directory and in my template’s folder under the same name. It works.

    BUT when I have the static front page, going to “/site” in Firefox just gives me the very same static front page! It’s like the blog disappears! The same thing happens if I try to surf to one of the category permalinks. Why??

    Thanks so much! I can see from the previous questions you really take care of the people who use your software!

    Best,

    Alex

  116. Rich Dale commented on July 27, 2006 at 4:43 pm | Permalink
    Rich Dale

    I’ve installed the Home Page control on my windows IIS hosted blog, but the selected page does not display as the home page.

    you can see the content here: http://dev.dreamlablearning.com/?page_id=4

    but it doesn’t appear here: http://dev.dreamlablearning.com/

    is there a workaround to fix this, as i assume this is an IIS issue?

    any help would be appreciated, as i need to host this site on an IIS machine.

  117. filosofo commented on July 27, 2006 at 4:57 pm | Permalink
    filosofo


    I called my static front page “index.php” and put it in the root directory and in my template’s folder under the same name. It works.

    Alex, I’m surprised what you did worked.

    At any rate, the point of my plugin is that you don’t have to create static front page files and put them anywhere. If you’re going to do that and put the blog in another directory like “/site,” then the plugin is of no use.

    Instead, you can have WordPress in the root directory (although that’s not necessary). Then when you activate the plugin, go to Options > Home-Page Control in the admin control panel, and under the drop-down list “Home-Page Page:” choose which page you want to be the home page. Then enter “site” into the field labeled “Blog directory,” and press “Save.”

    What will happen is that the static page you chose to be your home page will appear as the root of your site, say at example.com, and your blog entries–called “posts” in WordPress jargon–will appear at example.com/site/.

    So putting files in certain directories is not necessary. However, if you do want a special template just for the home page, you can do that too. See the first FAQ above.

  118. filosofo commented on July 27, 2006 at 4:58 pm | Permalink
    filosofo


    Ive installed the Home Page control on my windows IIS hosted blog, but the selected page does not display as the home page.

    Rich, permalinks must be activated for this plugin to work, and because I can see links on your site like “?page_id=4,” I know that currently you do not have permalinks activated. (This is a little confusing under Options > Permalinks, because “Default” should say “off”).

    Activating permalinks for IIS is not as easy as it is for Apache, but people have done it. Perhaps these links might be of help.

  119. Rich Dale commented on July 29, 2006 at 3:22 am | Permalink
    Rich Dale

    hey, thanks for the tips, i’ll give them a try :-)
    rich

  120. Klaus commented on August 1, 2006 at 8:51 am | Permalink
    Klaus

    Hello there, I am using your plugin. I activated it followed your instructions and created a page called home which is loaded by default. I put some content on it but it comes up looking like a post rather than a page, with a date, options to add comments etc, I’m not sure what I have done wrong and how to fix it. If anyone could help http://www.klausbravenboer.com, cheers Klaus

  121. filosofo commented on August 2, 2006 at 2:49 pm | Permalink
    filosofo

    Klaus,
    I think that’s happening because your theme, plaintxtBlog, has a home.php template in its directory. That means that it’s going to use that file for the home page, and so it’s going to follow that template rather than the pages’ template, page.php.

    A simple fix to make your home page use the page.php template is just to rename home.php to something like _home.php so that WordPress doesn’t see it.

  122. karie commented on August 4, 2006 at 4:17 pm | Permalink
    karie

    I loaded your plugin and followed your directions but now i don’t have anything listed under catagories when what i really wanted to do was to see all of my catagories on my homepage.

    BTW: thank you for this plugin

  123. filosofo commented on August 4, 2006 at 4:34 pm | Permalink
    filosofo

    karie,

    If the link in your name is the page in question, you’ve got something odd going on with your permalinks prefix: it looks like you’ve surrounded “blog” in tags.

  124. karie commented on August 4, 2006 at 5:01 pm | Permalink
    karie

    Yep that was it! but now i only see one of my catagories (like i did before i loaded the plugin) when i really have 3 so far.

  125. filosofo commented on August 4, 2006 at 5:46 pm | Permalink
    filosofo

    karie, WordPress displays only those categories which have been assigned to published posts.

  126. karie commented on August 4, 2006 at 6:08 pm | Permalink
    karie

    Thank you, I see them now…

  127. Gareth commented on August 11, 2006 at 2:16 pm | Permalink
    Gareth

    Hello and thanks for this plugin. I have installed it and successfully manged to change my homepage to a static page. How do I now create a link to my blog?

    Thanks again.

  128. filosofo commented on August 11, 2006 at 2:23 pm | Permalink
    filosofo

    Gareth,
    If you made “blog” your “Blog directory” under Options > Home-Page Control, then you would need to link to http://www.yoursite.com/blog

  129. Gareth commented on August 11, 2006 at 2:33 pm | Permalink
    Gareth

    Hmm, Are you saying that wordpress files need to be in a sub directory for this to work? Currently they are not.

  130. filosofo commented on August 11, 2006 at 2:36 pm | Permalink
    filosofo

    Gareth,
    Please see #2 under the installation instructions above: it’s not a real directory, it’s a pseudo directory.

    So, no, the files don’t have to move.

  131. Gareth commented on August 11, 2006 at 2:50 pm | Permalink
    Gareth

    Great, works now thanks.

  132. Essi commented on August 14, 2006 at 5:41 am | Permalink
    Essi

    Hello,

    I’m having a strange problem with this plugin. I use the Wordpress Default theme and I have modified it for my needs (it doesn’t look anything like the original theme). When I don’t have the plugin on, it shows the blog posts on index.php and everything looks right. However, when I put the plugin on and put “news” as my blog directory and go to the address mydomain.com/news, everything goes wrong. For some reason it displays the stylesheet, background, headerimage etc. of the original default theme and it also displays the whole original sidebar (pages, categories, blogroll etc). I don’t understand how this could be because I have modified those files and I’ve removed the sidebar. So where do they come from and why? :D Why won’t my own modified files show up?

    Thanks very much!

  133. Essi commented on August 14, 2006 at 6:04 am | Permalink
    Essi

    Oh yes, and I’m using version 2.0.4, a Finnish translation.

  134. Essi commented on August 14, 2006 at 6:18 am | Permalink
    Essi

    It’s me again, sorry. :D I just noticed that it works if I write mydomain.com/index.php/news. Maybe the problem is with the permalinks? I’m not very good with these kinds of things. My permalink structure looks like this /news/%year%/%monthnum%/%day%/%postname%/ and my .htaccess has this

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    Maybe I should modify that somehow? Thanks again and sorry to bother you.

  135. filosofo commented on August 14, 2006 at 9:27 am | Permalink
    filosofo

    Essi,

    My first guess is that your theme still has the original “index.php” file in it, and that file is being used when you request the “news” directory.

  136. Essi commented on August 14, 2006 at 11:07 am | Permalink
    Essi

    Hmm. I only have one index.php in the theme’s directory and it’s the one I’ve modified. At least I can’t find anything else. :/

  137. Essi commented on August 14, 2006 at 3:48 pm | Permalink
    Essi

    Hi, I don’t know if you got my last comment, it said something about spam protection and my message is being reviewed (?) and you should be notified. :D Anyway. I’m not sure what you mean, but I only have one index.php in the theme directory, and it’s the one I’ve modified. I’ve no idea what I should do. :/

  138. filosofo commented on August 14, 2006 at 4:05 pm | Permalink
    filosofo

    If you want, zip up your theme, email it to me at (if.website@gmail.com) if.website (located at) gmail (dot) com and I’ll try to figure out what’s going on.

  139. zzcoke commented on August 19, 2006 at 10:56 am | Permalink
    zzcoke

    thanks

  140. Karie commented on September 3, 2006 at 9:17 am | Permalink
    Karie

    Good Morning – as you can tell ‘I don’t have a clue’! I had to load a new install to get Wordpress MU – so I’m starting over and forgot to write down the permalink code. When you go to my site all you see is the sidebar and menu items but what i want to see is category 1 + the sidebar. I’ve tried a bunch of different templates and i’m getting the same thing with all of them.

    The last time I made a change on both permalinks & Home-Page-Control without having to make a new static home page

    Thank you for your time!

    Karie

  141. filosofo commented on September 3, 2006 at 11:32 pm | Permalink
    filosofo


    what i want to see is category 1 + the sidebar

    Hello Karie,
    Would you try again to explain what it is you’re wanting to accomplish? Right now I don’t understand what you mean.

    Are you saying that on your home page, you want only those posts categorized under category 1 to show up? If so, then you’re trying to do something different from the aim of this plugin, the aim of which is to make one page—not a number of posts—appear on the home page. You might have better success with this plugin.

  142. Jim commented on September 7, 2006 at 3:39 am | Permalink
    Jim

    Mr. Filosofo,

    I am baffled. After, many hours/days trying to setup the Home Page/Blog Page scenario that your plugin is supposed to enable, I just can’t seem to get it done. With your plugin deactivated, my blog posts show up on the http://www.mydomain.com page, as I believe one would expect. All static pages also appear as they should & are accessible. After activating the plugin, the static “Home” page appears when the http://www.mydomain.com link is invoked, the other static pages are also accessible, a link to the “Blog” page appears in the Navigation Bar, but it points to http://www.mydomain.com. I can change the mapped pointer in the plugin to blog or leave it blank, and I get the same result. Being new to the LAMP stack, I can’t troubleshoot this very effectively, although I have tried. Any ideas you might have would be immensely appreciated.

  143. filosofo commented on September 7, 2006 at 7:58 am | Permalink
    filosofo


    a link to the Blog page appears in the Navigation Bar, but it points to http://www.mydomain.com.

    Can you explain how you’re generating the link to the blog page? What theme are you using? Do you have a link so I can see this problem in action?

  144. Jim commented on September 7, 2006 at 6:02 pm | Permalink
    Jim

    I’m not sure what you mean when you ask how I’m generating the link to the blog page – I assumed that the actions described above would generate the correct linkages, as I believe I have followed your instructions to the letter. If you’re asking about my Wordpress install, it is hosted by siteground.com and was auto-installed via Fantastico. My website is http:\\www.newgroundtech.com and the theme is Spring 1.1.1 obtained via the Wordpress Theme Viewer or at the creator’s website – http://iqwolf.org/wordpress-themes/.

    Hope that gives you enough to go on and I appreciate your helpfulness.

    Jim

  145. filosofo commented on September 7, 2006 at 6:38 pm | Permalink
    filosofo

    Jim, most themes don’t link to “blog.” This theme’s author has made the “blog” link to point to the home page, whatever that is.

    So your easiest solution is to edit the spring theme’s header.php file and change this line from


  146. >< ?php _e('Blog'); ?>
  147. to

  148. /blog/”
    >< ?php _e('Blog'); ?>
  149. (assuming your “blog directory” is “/blog”).

  150. Jim commented on September 7, 2006 at 9:21 pm | Permalink
    Jim

    Austin,

    That’s a big step in the right direction, as the virtual directory “/blog/” now appears in the URL, as does the “blog” page configuration that includes the sidebar with recent post titles. The posts themselves, however, do not appear.

    I’m also wondering if my index files might be screwed up, because when I replace the Spring Theme with other themes (like the default, Kubrick, or K2), I don’t get the blog directory or blog posts. I currently have the theme index file, which remains as originally provided:

    < ?php get_header(); ?>

    < ?php include (TEMPLATEPATH . '/theloop.php'); ?>

    < ?php get_sidebar(); ?>
    < ?php get_footer(); ?>

    In addition, there is an index file in the actual \wordpress\ directory that contains the following:

    < ?php
    /* Short and sweet */
    define(’WP_USE_THEMES’, true);
    require(’./wp-blog-header.php’);
    ?>

    and an index file in the root server directory, which is published at the domain name URL, http://www.newgroundtech.com, that contains this code:

    < ?php
    /* Short and sweet */
    define(’WP_USE_THEMES’, true);
    require(’./wordpress/wp-blog-header.php’);
    ?>

    If the index files, aren’t the issue, it must still be something other than a theme issue, because I get the same problem with all themes that I have tried.

    Thanks again for your helpfulness.

    Jim

  151. filosofo commented on September 7, 2006 at 9:48 pm | Permalink
    filosofo

    Most themes are not going to show a separate “blog” page. That’s normal, because theme designers aren’t expecting you to use this plugin; they’re expecting your blog to be the home page. Even the designer of the “spring” theme makes this assumption, having the “Blog” link always point to the home page.

    All that to say, what you’re seeing when you activate other themes is expected behavior. If you want a link to “/blog” in most themes, see the instructions above in the FAQ #4.

    The reason http://www.newgroundtech.com/blog/ is blank is that the “spring” theme has a very unusual template structure; most of the heavy lifting is done in a theme file named “theloop.php,” and there the designer assumes that blog entries will be on the “home” page. That means that when you put the blog entries elsewhere, the theme balks.

    So the “spring” designer’s assumptions about the home page and unorthodox and overly complicated theme structure combine to make the “spring” theme intolerant of the kinds of changes this plugin makes.

  152. Ron commented on September 8, 2006 at 2:49 am | Permalink
    Ron

    Hi, Just a few days ago, an acquaintance recommended Home-Page Control to me and I have been really impressed.

    I’m having problems with the display of the menu.

    I installed & activated the Home-Page Control. Then I enabled permalinks as “/blog/%year%/%monthnum%/%category%/%postname%”

    After that, I created the pages Home (page slug ‘home’), About (page slug ‘about’), and My Blog (page slug ‘blog’).

    With that configuration, when you land on http://www.ronjones.name both “home” and “blog” show as the active page, “about” seems fine, and “my blog” returns a 404 error when you click on it. (every page has a comment box at the bottom, which I would like to keep).

    I believe I’ve narrowed it down to the navigation section in the header of the template, which reads as follows:

    In the above code, I noticed the theme author inserted a link to “blog”, so I changed it to:

    In post 146, you advised making some changes to a template that displayed the “blog” menu item.

    So, I changed

  153. ” title=”Blog”>Blog
  154. < ?php wp_list_page('depth=1&title_li=&exclude=143' ); ?>

    to

  155. /blog/”
    >< ?php _e('Blog'); ?>
  156. with this change, “home” and “about” seem ok, while “blog” is still there and (along with “my blog”) when clicked on, gives a 404 error.

    Can you make any suggestions?

    Thanks,

    Ron

  157. filosofo commented on September 8, 2006 at 7:29 am | Permalink
    filosofo

    Ron, as far as I can tell from looking at your site, you haven’t made any posts yet. That seems to me to be the most likely cause of your 404 error on the “My Blog” page–there are no posts to be found.

  158. Ron commented on September 8, 2006 at 10:15 am | Permalink
    Ron

    lol… well, posting something to the blog got rid of the 404 error. Doh!

    I tweaked the menu just a little, so that what was:

    is now:

    But for some reason, I’m still getting a “ghost” of the old “blog” menu item. Do you have any idea how I can get rid of that and (if possible) order the menu items?

    Thanks,

  159. filosofo commented on September 8, 2006 at 12:08 pm | Permalink
    filosofo

    Ron, I’m not seeing the “ghost.” Is it possible you’ve already fixed it?

  160. Ron commented on September 8, 2006 at 1:22 pm | Permalink
    Ron

    Yes, sorry it took so long to post the fix. But for those who may also use “light 1.0″ by Stephen Reinhard at vaguedream.com, what I did to get rid of the “ghost” was change the navigation area in the header

    FROM:

    TO:

See some of the other WordPress plugins I’ve created.
Like this plugin? Is it worth a latte?

My Amazon.com Wish List

This month I have received $57.00 in donations for the free plugins I offer here, which is about $0.14 per download.