Wordpress Edit Page Textareas - wordpress

I was tasked with migrating a CodeIgniter Site to WordPress in order to allow interns to edit the pages. Some of the pages have extremely complex html structures. I saw a video where additional textareas were added to the Edit Page page and each textarea corresponded to a specific div on the page. If I could duplicate this, the interns could edit small chunks of the page at a time rather than crippling the entire page due to carelessness. They've done this twice already and the WordPress site has been up for three days.
I tried to google for this but since I don't really know what they are called, I was unsuccessful. I am looking to be pointed in the right direction here -- I can do the research.

You could do this with custom fields http://codex.wordpress.org/Custom_Fields
The advanced-custom-fields plugin, for example, gives you plenty of possibilities for adding custom forms on your post pages using textareas and whatnot
http://wordpress.org/extend/plugins/advanced-custom-fields

Related

How to have single-slug behave like a normal page in WordPress?

I'm making a website in WordPress, and I'm using a plugin ACF PRO. I'm doing the entire site with flexible content, so the WordPress site is like a page builder.
Everything is fine, however, I came to a point where I need to have same functionality for single-[custom-post-type], so I can "Add row", header, footer etc... on it, but I can't figure out on how to do it.
I know that it's possible, because e.g if you look at this site here: https://rolleragency.co.uk/our-projects/
You can see that it works. I know they are using flexible content because I worked on that site and I did there what I wanted. I can't remember how to do that.
I think I had to use a Tempate Page? Or? I can't remember.
THe site is built entirely on flexible content, so everything there is modular and it's like a drag and drop, but how do I do that on single-slug?
You have to create a page template, yes.
So something like page-projects.php then in WordPress admin you would have a page called Projects.
The template you created should be automatically applied to this page. If it doesn't for some reason you can choose which template WP should use on the right side when editing a page.
Now, you can add whatever code you need to the page-projects.php. And also any fields you may need for that page you can set up in ACF by telling ACF to apply those fields to pages that use projects template.
This is how I would and did do it on several occasions :)

WordPress Dynamic Content

Greetings to developers community.
I'm new(beginner) on wordpress developing. I wanted to challenge myself and try to build a wordpress theme from an existing Static Website, (HTML to WordPress).
I've come across a problem or better to say I'm not having an idea of what to do on this step of development and wanted to ask for any advice or references on how to manage dynamic content on pages. What I want is: From the Dashboard if a user want to edit the content of a page how can he achieve it and do it without wanting him to go over the code. I am going to post a screenshot because I might not be cleared of what I want.
Screenshot
So those description how should be inserted on the page and be modified later if wanted without braking the style or model of the page?
I've tried Custom Fields but WordPress has a limit and can't add as many as I want and the list of custom fields went large.
Thank you in advance.
Your issue is easily solvable with a dynamic content plugin. you can try "Dynamic Widget Content" or If>So Dynamic content. Both free and worked great for me.

Request wordpress page and specify the page template

I have a website running Wordpress with a specific, custom theme and I would like to use some of the pages as an iframe within a different website.
The problem I am having is that I don't want to show the menu, header and footer, I want to use a different font and have the page load as quick as possible.
The best way to do this is to apply a different, bare page template to the page I want to embed as an iframe. However this will also affect the page when displayed on the website. There are plugins that will enable the content to be shown as json. This gets close to what I want to do but since it's an iframe I'd prefer to have some basic styling in there.
Is it possible to do the request for the iframe in a way a different page template is applied?
I've tried reading up about this but due to the sheer amount of articles explaining how the page template hierarchy works I've not been able to find anything explaining how to make the client influence this.
tl;dr can I do some sort of ?apply_template='page-bare.php' to enforce a different page template?
I think this might help you: Load post with a different template?
The way is:
Register new query variable
Redirect to a different template, when that query var is set
Create that template in the way you like it
get_template_part might also come in handy here.

Custom form in Wordpress?

I'm making a wordpress site which looks like and behaves less like a blog and more like a classic web site. I need to make plenty of custom forms and by now I have three equally bad solutions to this.
One would be to create each form as a theme template file. Those pages would submit data to themselves and all would be great, except the fact that I don't really like my plugin and theme to be so hardly connected. I think that theme should be for design only, which means header, footer, etc... and that plugin should handle all the other work.
Second solution is to make some controller.php file somewhere in my plugin folder and then all requests should be directed to this controller which would control what page should be displayed and how. And each page should be made with the use of WP short codes located inside my plugin folder. Problem with this approach is that I have problems transfer POST parameters, after I submit a form. I would submit a form to my controller which would then redirect it to a page with all POST parameters lost.
Third solution would be to target actual pages which display content with the use of WP shortcodes, and when user successfully submits the form shortcode would instead of the custom form, return some Thank you message. Problem here lies in fact that if you hit refresh while Thank You message is displayed browser would submit the form once again. And again and again, every time you'd press refresh.
Simple question. How would you do it?
Would it be the first way? I see many people doing just that, hardcoding their custom forms inside template files, even though it may be not the cleanest solution. Hmm... Still, I would like to separate my forms and logic away from my theme.
Greets
There are a couple of good form solutions as existing plugins. The two that come to mind immediately are Gravity Forms, which you must purchase:
http://www.gravityforms.com/
or Formidable Forms, which has a free basic version and a paid advanced version:
http://wordpress.org/extend/plugins/formidable/
I would definitely suggest using a plugin. It's best to keep design and functionality separate when possible. Both of these plugins are pretty simple to use. I know formidable uses shortcodes, but I'm not sure about Gravity Forms

Can Wordpress Duplicate An Entire Page Structure?

I have a wordpress site that i've been working on that has some pages (as in NOT posts) that a client changes content on in order to target particular keywords. these pages have been using podscms for content management.
The client now wants to be able to duplicate these pages any number of times and edit the text within them. So basically, he wants to be have a dozen or so versions of about 4 linked pages.
Does anyone know if it's possible to duplicate an entire multipage structure like this in WP?
Or any WP driven sites that implement segmentation similarly?
I think your best bet would be to use Page Templates. You define them in the theme and then for each Wordpress page you create, you can select which page template you would like to use for the page. This sounds like what you're trying to accomplish.

Resources