• Hey all,

    I have a Specials section in my sidebar which displays the lowest current loan rate.

    Since there’s only one line of text and a line of code, I figured I’d just try making the sidebar a page with a custom page template and use the_content(); and the_meta();

    But I’m running into problems. I can’t call the file directly because I’d be operating outside of the loop. And I haven’t found a PHP or HTML include that works a URL like the following:

    http://myhome/sidebar

    (The extension-less link)

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you want to use the_content() and the_meta(), you’ll have to either run a second Loop or use get_posts.

    http://codex.wordpress.org/Template_Tags/get_posts

    http://codex.wordpress.org/The_Loop#Multiple_Loops

    Thread Starter sabbry

    (@sabbry)

    I plan to run a second loop when I get the include working.

    How do I include a dynamic sidebar on every page that’s updatable from the pages menu? The HTML and PHP functions I’ve found either reference a relative file, which won’t work, or they reference something with an extension, which also won’t work.

    Thread Starter sabbry

    (@sabbry)

    Just wondering if anyone had thought of any solutions to my dilemma.

    Thanks!

    Thread Starter sabbry

    (@sabbry)

    Still looking for solutions on this one.

    I’ve found information on adding a second sidebar, designing for widgets, etc., but nothing on creating a sidebar which can be edited from WP-admin administration.

    What I’m trying to do is create a sidebar advertising specials.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dynamic, Editable Sidebar’ is closed to new replies.