Solved

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

Posted on 2011-09-08
9
391 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
Comment Utility
Hi kasondeneddy,

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

Author Comment

by:kasondeneddy
Comment Utility
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
Comment Utility
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
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Great!  Glad you got it working.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
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 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…

743 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

18 Experts available now in Live!

Get 1:1 Help Now