i built up a wordpress theme and inserted an imageslider to this. The Images are still static but i would like to define them on every wordpress-page. I may could filter the page ID in the template-header and define the images dynamically.
Now im searching for a method to dynamically define them in the pageeditor in the backend of wordpress. So that the customer can change them himself for every page.
Is there already a plugin for this problem or any other easy solutions?
thanks and greatings
stetro
There is some great slider plugins already out there. WooThemes's one being one of my favourite. It is $35 though.
If you've already got it all setup though, and just need to be able to do it dynamically, then you could use a plugin like Attachments. You can just have it call the attachments for the current page/post, and use those images. If you NEED to have a slider on every page, then check for attachments on the current page/post, and if there is none, then request the ones for the home page. Done and done. Well I hope so, not sure if I read your question correctly... Hope this helps but :)
Related
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 :)
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.
I am currently creating a wordpress site. Some pages will need a section with some images at the bottom and other pages won't. But this needs to be controlled via the backend
So when you go on that specific page in the wordpress backend, there will need to be a check box to decide whether to display the section or not.
It has to be this simple as my client is not tech savvy in the slightest.
Is there a plugin to maybe achieve this?
Thanks in advance
Danny
Install the Advanced Custom Fields plugin. This way you can do a simple conditional along the lines of if(get_field('myCheckbox'){ // add your images };
Further information can be found here: http://www.advancedcustomfields.com/resources/field-types/checkbox/
Update in response to comment
For a radio button, the code should be pretty similar - something like:
$theField = get_field('name_of_radio_button_goes_here');
if($theField == "enabled"){
// THE HTML YOU WANT TO BE HIDDEN/SHOWN GOES HERE
}
No need to add display:none or anything like that - unless "enabled" is selected for the page in Wordpress, then nothing will display for the page you are on
I would like to know which WP plugin should I choose to allow every user who come to my page to add a post to my page form the frontend.
He just click on a button add a new post or something like that. Than a form appear and he inserts the title and uploads an image.
After that its published as a post.
Is there a solution like this available for WP?
Thanks in advance.
From what I know, there is no existing plugin doing it as you need. Even if it existed, I wouldn't recommend it's use for security reasons; it is hard to follow every uses and make sure visitors would post the way you want.
You are definitely better to code it by your own, and it's quite simple using the wp_insert_post function. This function will work anywhere you put it inside Wordpress (no need to build a plugin from scratch), so a simple form with validation would make it.
Hope it guides you on what you're looking for.
I have a project that i would like to complete in Wordpress.
Basically, the story is that I have 8 boxes on my page that would each be enclosed in their own div.
I want to have a form on another page that a user can fill out and they would get to choose a box in which to put images or text into. If a box is taken, they can’t choose that one and must choose another.
What would be the best approach for this? I was thinking something like a CSS gallery type theme but how would I go about letting the user choose which box?
Any ideas and nudges in the right direction is appreciated.
I would do this in Drupal, or straight php. I think wordpress is going to be an impediment here rather than a boon. I would make each box a drupal block or node and use the standard form, to allow users to trigger editing that box. Then use CCK in control content like pictures and text and the way they display. Hope this helps.
The only way I can see this going anywhere is more or less completely bypassing Wordpress. So you use Wordpress only to render the theme, but the form action goes straight to PHP.
This way you're free to parse the form posts and store the uploaded images somewhere.
You could try to shoehorn everything into a Wordpress comment, but I don't think attaching files would work. So your best bet is to just have the form action point to a PHP file and handle everything manually.
It should be easy enough to query a custom table in the database using your theme's functions.php and $wpdb.