wilsonvision
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Small box next to static home pageIt worked! Thanks much!
Forum: Themes and Templates
In reply to: Small box next to static home pageThanks much. Actually I use an untitled page for a static homepage. However, I don’t name it because then it lists “home” twice in the top nav. Any suggestions?
Forum: Themes and Templates
In reply to: Hover/rollover color changeThe F5 worked. Thanks much!
Forum: Fixing WordPress
In reply to: Remove pages from top navEsmi:
Thanks for all the help. I finally went with another theme in order to use pagemash plugin.
Forum: Fixing WordPress
In reply to: Remove pages from top navEsmi, you have been diligent in patient in your help. Thanks much for the work you’ve put into it!
Forum: Fixing WordPress
In reply to: Remove pages from top navAll pages still show up in top nav, even with that code you provided. I listed only one page and it still displays all pages in top nav. Any idea why?
Forum: Fixing WordPress
In reply to: Remove pages from top navThere are about 15 pages on the site. I will excluding most except for four or five pages. For example, I’d like to exclude automation control. The page title is ‘automation control’ and the friendly URL for that page is:
http://www.crdindustrialsales.com/automation-control
When you gave me a variation of your first post, it rendered it blank, but the following code rendered what you now see live at http://www.crdindustrialsales.com
# Displays a list of pages function dp_list_pages() { global $wpdb; $querystr = "SELECT $wpdb->posts.ID, $wpdb->posts.post_title FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'page' ORDER BY $wpdb->posts.post_title ASC"; $pageposts = $wpdb->get_results($querystr, OBJECT); if ($pageposts) { foreach ($pageposts as $post) { if( !is_page( array( 'automation-contol') ) ) ?>"><?php echo $post->post_title; ?></a></li><?php } }Forum: Fixing WordPress
In reply to: Remove pages from top navThere are about 15 pages on the site. I will excluding most except for four or five pages. For example, I’d like to exclude automation control. The page title is ‘automation control’ and the friendly URL is http://www.crdindustrialsales.com/automation-control
Forum: Fixing WordPress
In reply to: Remove pages from top navActually that code rendered my page blank even though I only tried to exclude one page. Is the following the path to exlcuding?
is_page(array(<em>page</em>'excludepage'))Forum: Fixing WordPress
In reply to: Remove pages from top navHere’s the new code implemented, but check out the Web site to see how it is rendered. Am I supposed to type “exclude” somewhere in there? The Snippet 4 instuctions just don’t make sense to me. THanks much for all your help!
http://www.crdindustrialsales.comDisplays a list of pages function dp_list_pages() { global $wpdb; $querystr = "SELECT $wpdb->posts.ID, $wpdb->posts.post_title FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'page' ORDER BY $wpdb->posts.post_title ASC"; $pageposts = $wpdb->get_results($querystr, OBJECT); if ($pageposts) { foreach ($pageposts as $post) { if( !is_page( array( 'exclude this page') ) ) ?>"><?php echo $post->post_title; ?></a></li><?php } } }Forum: Fixing WordPress
In reply to: Remove pages from top navIt appears that this is the only bit of code changed:
if( !is_page( array( 'Foo', 'Wibble', 'About') ) )And here’s what I found from Snippet 4 in the conditional tags help:
if(is_page()&&($post->post_parent==$pid||is_page($pid))) return true; // we're at the page or at a sub page else return false; // we're elsewhere };When I implemented the code you posted, and substituted “foo” “wibble” “about” with actual pages I have, the whole site went blank. I couldn’t even log into wp-admin, and then I just used FTP software to replace the altered functions.php with the stock funtion.php page.
Any suggestions?Forum: Fixing WordPress
In reply to: Remove pages from top navEsmi:
Here’s how it goes. Do you suggest I can fix this bit of PHP?
# Displays a list of pages function dp_list_pages() { global $wpdb; $querystr = "SELECT $wpdb->posts.ID, $wpdb->posts.post_title FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'page' ORDER BY $wpdb->posts.post_title ASC"; $pageposts = $wpdb->get_results($querystr, OBJECT); if ($pageposts) { foreach ($pageposts as $post) { ?><li><a href="<?php echo get_permalink($post->ID); ?>"><?php echo $post->post_title; ?></a></li><?php } }Forum: Installing WordPress
In reply to: re-installation problemsAnd when I load wp_upgrade.php I am told that no upgrade is required
Forum: Installing WordPress
In reply to: re-installation problemsI have uploaded all of the appropriate files, and even left wp_config.php intact. Yet when I log into my admin panel, the old WordPress is still there. It is recognized that I need to update, but my version is 2.3, so I’m just redirected to the page to download the thing. Any suggestions are appreciated.