• Hi, i have a javscript based sublink script on my non-wordpress site.

    I think wordpress rocks. And i want to use it as both a news script and a simple CMS. Can i list the Pages and SubPages of my site in the following way:
    <div id="navibar">
    <div id="globalNav">
    <a href="/1/" onmouseover="showInfo(0)">Link 1</a> |
    <a href="/2/" onmouseover="showInfo(1)">Link 2</a> |
    </div>

    <div id="breadCrumb_0" style="display: none">
    <a href="/1/1/">Sub 1</a> /
    <a href="/1/2/">Sub2</a> /
    </div>
    <div id="breadCrumb_1" style="display: none">
    <a href="/2/1/">Sub2 1</a> /
    <a href="/2/2/">Sub2 2</a> /
    </div>
    </div>
    I can’t think of a way to do that inside a wordpress template- is there a way- or can this be done directly from the mysql database?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can’t see why not.
    In the <head> tags, get the script:
    <script type="text/javascript" src="http://www.example.com/your_script.js"></script>

    and then write those links directly into sidebar.php rather than trying to use the inbuilt Links manager which will mangle the code you need.

    Thread Starter liljoeyjordison

    (@liljoeyjordison)

    Right, it’s just i wanted it to add pages automatically.

    Is that possible?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can i do this in a wordpress template?’ is closed to new replies.