What is the best way to create custom content entry forms in the WordPress dashboard?
-
(I posted this question also on my blog at http://josschuurmans.com/2014/01/22/wordpress-question-how-to-input-small-content-items-in-the-dashboard-and-pull-them-out-into-web-pages-on-the-front-end/ , with an image of a wireframe) Iâm designing a website for a municipality-owned company that facilitates local entrepreneurs. Hereâs my WP install in development: http://masekpro.salab.im Iâve made wireframes for all pages, here: https://www.dropbox.com/sh/369cveq5n9tkjkb/-6V3dkMMDT (things keep moving, so they are not perfectly up-to-date, but the main features are there) Iâll have a 1st-level navigation menu with 9 pages, one of which is a blog-type news index (âAjankohtaisetâ). Most of the other 8 pages and their 2nd-level sub-pages will be fairly straighforward, relatively static pages. Iâll develop a couple of page templates to accommodate their layouts. There will be several âboxesâ with text and/or images and/or links, to be pulled in by various page templates. For example, the home page (âEtusivuâ) will have 5 such boxes at about â the page width each, and a map at â the page width. (1) So my first question is: How do I best create the input functionality for those boxes on the editorâs dashboard? Should I input their content simply in âpagesâ on the dashboard? Should I create custom pages, i.e. special page templates? Should I create custom post types? Should I create some other kind of input forms? Should I build widgets for this purpose? If so, how? Do I need to use a plug-in? Any better ideas? The idea is that it works well, technically, but also that it will be easy for my customer to update information in those boxes. If the purpose of page templates is only to vary the layout of web pages, then I suppose they are not the way to go. Custom post types sounds logical, but arenât âpostsâ meant for reverse-chronological entries? Chronology is not relevant to these boxes. Or should it be? (2) My second question relates to creating 3 collections of simple database records (âcompaniesâ, âoffice spaceâ and âbuilding lotsâ) and pulling them into pages as lists (all; within a category; or as search results) with thumbnails and a few lines of text with a link. So, again, how do I create the input functionality? Regular pages? Custom pages templates? Custom post types? Custom input forms? Widgets? Plug-in? Something else? Much appreciated!
-
Answer:
You can use Advanced Custom Fields with page templates.
Acatrinei Valentin at Quora Visit the source
Other answers
You can use Custom Fields with page templates. 01add_action('wp_dashboard_setup','my_custom_dashboard_widgets'); 02 03function my_custom_dashboard_widgets() { 04global $wp_meta_boxes; 05 06wp_add_dashboard_widget('custom_help_widget', 'Theme Support', 'custom_dashboard_help'); 07} 08 09function custom_dashboard_help() { 10echo '<p>Welcome to Custom Blog Theme! Need help? Contact the developer <a href="">here</a>. For WordPress Tutorials visit: <a href="http://www.wpbeginner.com" target="_blank">WPBeginner</a></p>'; 11} Manager http://www.valuecoders.com/
Ved Raj
Related Q & A:
- What is the best way to distribute an audio/video feed from a computer to TVs over existing indoor coax cable?Best solution by Audio-Video Production
- What is the best way to clean LEGO bricks?Best solution by bricks.stackexchange.com
- What is the best way to make UI for an Isometric game in Java?Best solution by Game Development
- What is the best way to calculate a date difference?Best solution by Stack Overflow
- What is the best way to count lines in file?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.