Solved

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

Posted on 2011-09-08
9
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

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 …
In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

710 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