I would do this by adding two custom fields on each page – one for your image path and one for the link URL. Then, call those custom fields in your sidebar.php file.
References:
http://codex.wordpress.org/Custom_Fields
http://www.wprecipes.com/wordpress-how-to-get-custom-fields-outside-the-loop
Thread Starter
pl2
(@pl2)
Thank you zoonini,
I was wondering if there was any easier way of doing this for a beginner?
Thank you.
Thread Starter
pl2
(@pl2)
I know how to create a custom field. However, the way I understand it is that you have your key and the value, one key would be the image, and the value of that be the url path of the image? How would I add the url target of the image there?
Or do I create 1 key and 2 different values? One for the image target url, and one for the image url?
Just a bit confused.
Thank you.
Hi pl2
Try this plugin
http://wordpress.org/extend/plugins/custom-sidebars/
It does what you need, and you don’t have to invent anything new.
Cheers
Thread Starter
pl2
(@pl2)
That sound great. I’ve just installed it, and it says that when you create a custom sidebar, you can see it in the widgets menu. Mine does not show up in the widgets menu. What am I doing wrong?
[ Please do not bump, it’s not permitted here. ]
Related question: I’ve installed the plugin and have set up a custom sidebar. I then dragged some content into the new sidebar via the Widgets panel. So far, so good. I created a page, and designated the custom sidebar to appear. It seems my theme may not support dynamic sidebars — the theme is PureType from Elegant Themes.
Some research suggests that I place the following code:
wp_head();
before the closing HEAD tag (</head>) in my HTML.
Question: Does this seem like a correct fix, and if so, do you know where I would find the HTML file(s) to insert this line into? The HTML view of pages I create via wp-admin does not show any HEAD tags.
nycnml – please start a new thread for your question, thanks!