Results 1 to 10 of 25
Hybrid View
-
1st Feb 2011, 01:13 AM #1MemberWebsite's:
JustCDkeys.comI need a little help with php code inside wordpress theme.
I want to add a link to top menu navigation...this code is from header.php
Code:<ul id="subnavbar"> <li class="page_item<?php if(is_home()){echo(' current_page_item');} ?>"><a title="Latest" href="<?php bloginfo('url'); ?>">Home</a></li> <?php $stickyCategories = get_settings("ftoptions_sticky_categories"); if($stickyCategories) { foreach ($stickyCategories as $value) { $value = str_replace(" ", "-",$value); $id = get_cat_id($value); wp_list_categories('include='.$id.'&title_li='); } } ?> <?php //wp_page_menu('show_home=0&exclude='.$q2.'&menu_class=page_item&sort_column=menu_order'); ?> <?php wp_list_pages('title_li=&exclude='.$q2); ?> </ul>
Any help is appreciated.nForc3r Reviewed by nForc3r on . Doing some free PHP work. So, im bored, and I feel like doing some PHP work. If anyone needs a custom script coded or w/e hit me up via this thread. Include: What functions the script needs to have, admin panel, etc User system, etc Whatever else you can think of, the more you have, the better. Note, I WONT do any HTML, CSS, or Photoshop work right now, as I really cbf with that. So, if you have your HTML and CSS templates coded, i'll convert them to PHP. Also if I didnt mention it earlier, its all free :) Rating: 5
-
1st Feb 2011, 11:56 AM #2
-
1st Feb 2011, 09:25 PM #3MemberWebsite's:
JustCDkeys.com
-
1st Feb 2011, 09:30 PM #4Respected Developer
you mean wants to add something like this?
PHP Code:<ul id="subnavbar">
<li class="page_item<?php if(is_home()){echo(' current_page_item');} ?>"><a title="Latest" href="<?php bloginfo('url'); ?>">Home</a></li>
<li><a href="http://besthostingforums.com/">YOUR LINK</></li>
<?php
$stickyCategories = get_settings("ftoptions_sticky_categories");
if($stickyCategories)
{
foreach ($stickyCategories as $value)
{
$value = str_replace(" ", "-",$value);
$id = get_cat_id($value);
wp_list_categories('include='.$id.'&title_li=');
}
}
?>
<?php //wp_page_menu('show_home=0&exclude='.$q2.'&menu_class=page_item&sort_column=menu_order'); ?>
<?php wp_list_pages('title_li=&exclude='.$q2); ?>
</ul>Bots Development | Web Development | Wordpress Customization | PSD Conversion
Life has many twists and turns in it, you have to take what you are given and use it for the best.
-
1st Feb 2011, 10:16 PM #5MemberWebsite's:
JustCDkeys.com
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Looking for a Free GFX work
By Cooper in forum Graphics AreaReplies: 2Last Post: 11th Oct 2012, 07:41 PM -
Free Graphics Work
By KWWHu in forum Graphics AreaReplies: 65Last Post: 29th Jul 2012, 08:24 AM -
need logo [free work]
By abhikala1 in forum Graphics AreaReplies: 2Last Post: 11th Sep 2011, 08:25 PM -
Free GFX Work
By subha86 in forum Graphics AreaReplies: 9Last Post: 29th Apr 2011, 09:39 AM -
[Free]Gfx work needed
By Mr.WT in forum Graphics AreaReplies: 7Last Post: 6th Oct 2010, 02:58 PM
themaCreator - create posts from...
Version 3.50 released. Open older version (or...