I’m confused.
Are you asking how to put a link to your forum at the top, up with your page links?
I’ve a hunch you would need to edit the theme (probably header.php) and insert the link manually.
yeah exactly but I’m not good with that field and i don’t want to mess up the database.
where do i edit it in the header.php?
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head profile=”http://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<meta name=”generator” content=”WordPress <?php bloginfo(‘version’); ?>” /> <!– leave this for stats –>
<link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />
<link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS 2.0″ href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom 0.3″ href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<title><?php bloginfo(‘name’); ?> <?php wp_title(); ?></title>
<link rel=”shortcut icon” href=”<?php bloginfo(‘template_url’); ?>/images/favicon.ico” type=”image/x-icon” />
<link rel=”icon” href=”<?php bloginfo(‘template_url’); ?>/images/favicon.ico” type=”image/x-icon” />
<?php wp_head(); ?>
</head>
<body>
<div id=”outline”>
<div id=”header”>
<div class=”blogtitle”>
<h1>” title=”<?php bloginfo(‘name’); ?>”><?php bloginfo(‘name’); ?></h1>
</div>
</div> <!– end of #header –>
<div id=”navbar”>
<ul class=”menu”>
<li class=”<?php if ( is_home() ) { ?>current_page_item<?php } else { ?>page_item<?php } ?>”>“><?php _e(‘Home’); ?>
<?php wp_list_pages(‘sort_column=id&depth=1&title_li=’); ?>
<?php wp_register(‘
- ‘,’
‘); ?>
<div class=”searchbar”>
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
</div>
</div> <!– end of #navbar –>
<div id=”wrapper”>
<div id=”content”>
i posted its outputs so how do i edit it to go to my forum when clicked.
Right after
<?php wp_list_pages('sort_column=id&depth=1&title_li='); ?>
paste this
<li class="page_item"><a href="URL TO FORUMS" title="Forums">Forums</a></li>
Thank you so much it worked!. 🙂
Okay i made one for login but it works but i want it to say logout when logged in.!?
is there anything i can do for this can someone please help me out i would really appreciate it.
Requires PHP and WP’s is_user_logged_in function. Adapt as needed:
<?php if (is_user_logged_in()){ ?>
... html to show if user is logged in ...
<?php }else{ ?>
... html to show if user is not logged in ...
<?php } ?>
what does that mean? is that a plugin i need to install and where do i find the htm to weather the person is logged in or not?.
Pop it into your WP template somewhere and you’ll figure out real quick what it does.
It uses PHP to check whether the person is logged in. Replace the ... html to show... with whatever HTML you want to display depending on whether the person is logged in.
Basically, putting both parts of code that adamrbrown provided you just need to copy and paste this code in, and see if it does what you want.
<?php if (is_user_logged_in()){ ?>
<li class="page_item"><a href="/wp-login.php?action=logout" title="Log Out">Log Out</a></li>
<?php }else{ ?>
<li class="page_item"><a href="/wp-login.php" title="Log In">Log In</a></li>
<?php } ?>
where do i find html that show if logged in or out?
I’m new to this.
I used your bit of code hempsworth, it works fine thanks for that.