Archive for February, 2010
WordPress comments to display under post.

What I’d wanted to do is display the comments without the viewer having to click “1 comment” or “2 comments” and take them to another page. Your theme has this code in some or all of these files: index.php, single.php, archives.php.

To display the full comment and option to reply instead of the “click for comments” link.

In the appropriate file, replace the code that looks something like this:

<p><?php the_tags(); ?><?php edit_post_link('Edit',' ',''); ?
> <br /><?php comments_popup_link ('Click here to Comment on this post',
'1 Comment- click to read', '% Comments - click to read'); ?> </p>

<?php
  $withcomments = "1";comments_template();
?>
Did you like this? Share it:
 
How to Exclude Pages from WordPress Nav Bar

I wanted to have a page that people could get to from a URL only and if you make the page private in the admin option then this will remove the page from the menu, and you will be able to access it by entering the URL. However take note that when you log out you will not be able to see the page contents. This also goes for you users.

So if you want to publish a page that public people can see full content from just hitting a URL then you need to publish it and then exclude it from the navigational function. Find your function.php and then modify the code. WordPress creates the menu with this function: wp_list_pages();

You can either remove that function and add your own links, or add the “exclude” argument to wp_list_pages(); like this: wp_list_pages(‘exclude=1,2,39′);

The numbers are the page id’s. You can find the page id from the manage pages section of your wordpress blog admin. This method however did not work for me as my nav menu have a drop down ability. So I had to code it like this.

wp_list_pages(‘include=1,2,39&title_li=’);

You can read about all the options on this WordPress Development Page

Good luck in coding your page.

Did you like this? Share it:
 
Lost WordPress Home Page

In the settings tab you are allowed to change the home page URL. However this will break your wordpress site. It auto redirect both the front and back end pages. You can not log back and and fix it. You must go into your MySQL database and change the table field. You must go to the wp_options table and then the siteurl field and change it back.

Also on a side note if you want to make a sub page your blog page and not the home page you can also do this in the settings. Go to the reading tab and then create a page, it will be blank, then select it the post page field.

Did you like this? Share it: