?
Solved

How to create a custom value select list in WordPress CMS?

Posted on 2014-04-18
1
Medium Priority
?
293 Views
Last Modified: 2014-04-18
Hi Experts,
Our WP blog makes use of both the WP CMS, and some custom CMS pages written outside of WP. The custom CMS pages store their data in dedicated tables the WP database.

What we are looking for is the ability to display values that were defined in our custom CMS pages, within the WordPress CMS.

For example, currently WP has a "custom field" system whereby you can create new custom fields (or select existing custom fields from a dropdown) and assign a value to each custom field in the textarea to the right of the custom field.

What we want is to display a line in the WP CMS that reads: "Use this testimonial on this Page": and to the right, have a dropdown list of all the testimonials the user defined in our custom CMS outside of WP. When the page is saved, WP would save the user's selected value as well.

Alternatively, if the user could enter in a WP custom field such as "use-selected-testimonial" and to the right, instead of a textarea, if a dropdown list of the existing testimonials could be displayed, that would work as well. Again, the selected value would need to be saved when the user pressed Publish or Update.

Is this something that is feasible to accomplish?
0
Comment
Question by:rascal
[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
1 Comment
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 40009189
Yes, it's feasible.  Since WordPress is just PHP at the end of the day, you can write scripts that will query the custom tables and return data and do what you want with it. The only limit here is the skill of the developer.

What you can't do is find a plugin that will handle this for you...too specific/custom.

All that being said, maybe this is a time to step back and think about why you have two separate CMS applications and maybe take some extra time and integrate everything into one system.  As you say, custom fields are the way to go here as well as custom post types for the testimonials themselves and this may be a pretty painless transition. Once everything is running on the same platform, you get some pretty sizeable advantages in terms of code reusability and speed of development to get something done.
0

Featured Post

Video: Liquid Web Managed WordPress Comparisons

If you run run a WordPress, you understand the potential headaches you may face when updating your plugins and themes. Do you choose to update on the fly and risk taking down your site; or do you set up a staging, keep it in sync with your live site and use that to test updates?

Question has a verified solution.

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

WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
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…
Suggested Courses

800 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