Forums

Wordpress PHP tags in post e.g. Links to categories (1 post)

  1. richarduk
    Member
    Posted 1 year ago #

    Okay, I'm trying to insert WordPress PHP tags in a post - for example:

    <div id="support-links">
    <ul class="pages">
    
    <?php wp_list_pages('include=118&title_li=');?>
    <?php wp_list_pages('title_li=&include=119');?>
    </ul>
    </div>

    This will make a div containing two links (I'm keeping it simple here)

    I've tried Sniplets - might like straight PHP, but doesn't like the WP stuff - changing the parameters around changes the results, and none of the results are what I want.

    I've looked at Inscript, but figure that's not going to help.

    RunPHP looks a bit buggy, and there might be security issues.

    Is it possible to do what I want?

    I've even tried floating a blank div in a post, then absolutely positioning another div outside of the post on top of it, but in both IE and Firefox there are endless z-index issues which I can't resolve i.e. I get a blank div floating on top of the links so that the links aren't clickable.

    (That was a groan of distress)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.