Tricky layout with targeted menu and iframe
-
Hi there,
I’m not sure if this can be done through WordPress. It would be great if it could, because I’d like the whole thing to be as automated and simple to update as possible.
I’ll try and explain what I’m looking to do as best as I can.
Basically right now I’m building a custom theme for a webcomic. One of the pages we want to set up is a cast page that lists all the characters from the story and has bios that go with each character. Sounds pretty simple right?It’s the functionality that has me stumped. The way we’d like to set it up is a menu of character names along with a small image thumbnail listed vertically to the left of the main content area where the character’s biography would be stated.
The idea is to click on a name to the left and that pulls up that particular character’s bio and loads it up to the right of the menu.So what I need to figure out if it can be done is:
* Creating a custom menu that lists characters and a thumbnail (right now I have each character as a post and their image set as the featured image).
* Have that menu’s links target what I’m guessing would be an iframe or if it can target a div (maybe with jquery or ajax?).
* Adding a new character post adds to the menu to the left, so you’ll be able to click them and view their info.
Normally I’d code up links with an iframe and have them target it, but I really wanted to utilize WP as much as possible to make things easier to add and update without having to go into the code to say add a new character.
I’ve been grouping the characters together by a category. And I’m pretty sure I have to make a loop that will pull the post titles under that category and list them. I think that’s how to make the menu part. I initially thought about using WP’s menu builder, but I don’t know how to set up menu items to have a specific target (ie: perhaps an iframe). I only see a “open in new tab” option for links.
On this loop idea, I’m not sure how to do that with categories.This raises the question though, even if I can build a menu through a looped list from this category, how do I get the posts to appear to the right?
Now, let’s say I use pages instead of posts, I could then have the pages show up in an iframe, but as far as I know you can’t categorize pages, so then how could I build a loop of page titles to build a menu? Again without using WP’s menu builder because I can’t set a specific target for the links.
It’s perplexing haha. Any suggestions would be awesome, even if it’s for a plugin that has the same functionality I’m looking for above.
- The topic ‘Tricky layout with targeted menu and iframe’ is closed to new replies.