Datafeedr Support Forums  

Go Back   Datafeedr Support Forums > Current Version (V3) Forum > Questions
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Important - The support forums are now in "read-only" mode as we transition to an alternative help desk solution. Feel free to contact us here with any of your questions or search the forums for an existing solution.
 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 16th, 2012, 11:54 PM
tradr tradr is offline
 
Join Date: Jul 2011
Posts: 25
Post Getting DF Categories into WP Nav Menu

In the DF documentation you gave this code on generating a menu.


Code:
[category.list before='<ul>' after='</ul>']
    <li>
        <a href="[category.link]" title="[category.name]">[category.name]</a>
        [category.repeat]
    </li>
[/category.list]

I am trying to have the ul and li appear in the themes header.php

Do you have the above in php ?

As I cannot figure out how to do_shortcode short codes with ' and " within them.

if you have a function for
category links (url + text)
and sub category links (url + text)
that would be awesome!

Cheers,

Johnny
  #2  
Old March 17th, 2012, 12:06 AM
tradr tradr is offline
 
Join Date: Jul 2011
Posts: 25
Default

This is my attempt:
<ul>
<?php do_shortcode('[category.list]'); ?>
<li>
<a href="<?php do_shortcode('[category.link]'); ?>" title="<?php do_shortcode('[category.name]'); ?>"><?php do_shortcode('[category.name]'); ?></a>
</li>
<?php do_shortcode('[/category.list]'); ?>
</ul>

The result in html source is this:
<ul>
<li>
<a href="" title=""></a>
</li>
</ul>
  #3  
Old March 17th, 2012, 07:49 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Why not use the tutorial I created here: /showthread.php?t=3448
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Append Datafeedr Store Categories to Default WordPress Primary Menu Eric Tips, Tricks & Tutorials 131 May 1st, 2013 01:48 PM
drop down menu Papada Questions 1 January 4th, 2012 02:24 PM
Drop down categories in Store menu jordand1 Questions 8 September 21st, 2011 01:30 PM
factory categories as WP menu items? rapidcraft Questions 2 March 3rd, 2011 06:51 PM


All times are GMT -5. The time now is 12:57 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.