Solved

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

Posted on 2011-09-08
9
393 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

What's this? As a volunteer Page Editor for Experts-Exchange.com, I have noticed that many authors also have blogs, and pull articles from their blogs to post at Experts-Exchange. I appreciate each author sharing their blog content with our site …
Do you think that WordPress is just for blogs?  Think again!  WordPress is really a fantastic all around platform that you can use to develop websites on.  Integrated into its basic functionality is the ability to create pages using your choice of a…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now