Solved

How to make a wordpress page an editable widget and add it to the sidebar?

Posted on 2011-09-08
9
397 Views
Last Modified: 2012-05-12
Good afternoon,

I would like to know how to make a page as a sidebar widget in wordpress.  I have a table that needs to be editable but appears in the sidebar.  I am converting a site to wordpress.  If you look at www.madisonassets.co.zm, you will see the economic indicators.  I need to make that an editable widget, where the admin users just update the values in the table.  I also need to do the same for stock exchange ticker and currency indicators.  Please advise soonest.  Thanks experts, awaiting your response.
0
Comment
Question by:kasondeneddy
  • 5
  • 4
9 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36504091
Hi kasondeneddy,

WordPress has a pre-defined Text widget that can render HTML, so you could just use that.
0
 

Author Comment

by:kasondeneddy
ID: 36505233
That is fine, but I wanted to make it easily editable for the person managing the website.  As in, the widget should be editable like a page. Make sense?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36505293
Ah, sorry I misunderstood.

You can use this plugin: http://wordpress.org/extend/plugins/query-posts/

Might have to tweak it slightly, but it works.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:kasondeneddy
ID: 36505441
Thanks,  any advice on how to actually use this widget to create , say a table in html with values, and make it easily editable in wordpress?  Confused as to how the query posts will actually work.  For example,  I need user to be able to update latest currency indicators..e.g. update dollar rate on a daily basis as well as other currencies.  Hope you understand what I am trying to do.   If you look at www.madisonassets.co.zm, you have a table in the right section, economic indicators...for example.  I need that table editable in wordpress, and it goes in the sidebar in wordpress.  
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 36505558
The plugin allows you to create a widget that is based on post content.  You can tweak the widget to make it look at a page if you prefer but a post should be fine for this purpose.

So you create a post with the content you want to display (use HTML mode to generate the tables initially, not the visual editor) and then use the plugin to make it into a widget.  Your users can then edit the post to update the content in the widget.  

0
 

Author Comment

by:kasondeneddy
ID: 36508780
Hi ,

That seems to have worked, though now I am getting the title and category appearing, and the CSS not rendering...I guess I need to strip the widget, but confused as to how to do so...Can I attach my theme and show you what I am trying to do? Then you can compare with live site? I will also attach the .sql of my wordpress in localhost.
0
 

Author Comment

by:kasondeneddy
ID: 36509116
Hi Got it to work!!!Thanks a milliion, query posts worked fine :-) Using pages though instead of posts, just tweaked the settings. Thanks Jason1178!! Great stuff!  Now to my next task..
0
 

Author Closing Comment

by:kasondeneddy
ID: 36509118
Was lead in the right direction and query posts is the solution I was looking for....
0
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 36511366
Great!  Glad you got it working.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Did you use a default hosting installation of wordpress with the intention of it being your actual site?  Maybe you’ve installed it as a Blog to your current site and recently converted it to be the main site and do away with the old .htm pages.  An…
I want to start by talking about the use of plug-ins for WordPress. I started a web-site for a company I was working for a few years ago; I had extremely basic knowledge of HTML. I am a Graphic Designer by trade so I invited the opportunity as a cha…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question