Is it possible, in your opinion, to code my own code so I could:
1. upload images in the WP backend interface.
2. attach that images to a specific post types ?
Also, I would like to replace repeater fields in option page with my own code.
It is possible to replace ACF option page with a simple WP function, that will create a new admin menu page. Thus, there is no need to ask the end user to purchase ACF pro in order to install my new WP theme. In the new admin menu page, it's possible to build a HTML Bootstrap posting Form. that WP function is called : add_menu_page().
Related
I am building a website for a local builder and he asked me to create a 'Project' functionality where he could add a Project, fill in the information and add photos and then have a page called 'Projects' where the new project automatically goes on to the page which then links to a page about the project in more detail.
Using Advanced Custom Fields, how would I create something like this?
Do I use the Page system or do I create a custom ACF options page just for projects? Each Project will need its own page and the project title and image must be accessible from the page footer as 6 of the latest projects will be shown there.
Any help would be appreciated!
I would probably not use Advanced Custom Fields for the projects but a custom post type called "Projects"
Register a Post Type
https://developer.wordpress.org/reference/functions/register_post_type/
Or Using a Plugin
https://wordpress.org/plugins/custom-post-type-ui/
This will give you a new Projects section just like pages or posts and I would use Advanced Custom Fields to add fields to the projects so you can add additional information on the project such as photos and any other fields a project might require.
Custom Post Type archive pages are accessible via www.yoursite.com/projects which will list all of the projects using the default template one of
single.php
archive.php
depending on your theme then each single project will have it's own page too at www.yoursite.com/projects/project-name these will probably use one of
single.php
singular.php
index.php
https://developer.wordpress.org/themes/basics/template-hierarchy/
You can create custom templates for both of these by creating files named
archive-projects.php
single-projects.php
The footer would be a different issue you'd need to loop through your projects using one of
get_pages();
get_posts();
WP_Query;
https://codex.wordpress.org/Function_Reference/get_pages
https://codex.wordpress.org/Function_Reference/get_posts
https://codex.wordpress.org/Class_Reference/WP_Query
I want to add some extra form fields to an existing page in Wordpress.
This page is where you are redirected whenever you edit a post or page.
My problem is I don't know where to find this file or what its called.
I need to know what file i need to edit in order to be able to add the new inputs.
this page would only be seen if you are an administrator and logged in and in dashboard.
I'm using wordpress edge shuffle theme.
The easiest way to solve this is to use Advanced Custom Fields. ACF allows you to specify custom fields that appear on certain edit pages in the admin. You'll then have custom data to use on your frontend templates.
Check out this tutorial for more.
For me, as I was just trying to figure out how to edit my posts page
While logged on to my admin account to edit, I went to my actual page and the top admin bar had an option of "customize" and that took me where I needed to go to add some css
i'm writing my first Plugin for Wordpress. A booking calendar. The Admin and Setting Page is already working. The Admin has the possibility to create, edit and delete bookings. I'm struggling with the Front End.
How do i call my "Create a Booking" Form for the User?
Do i need do create a separate Page for that or is it possible for the Admin to call my "Create a Booking" Form in every Page?
There are many ways... The simplest would be to put your form directly into the content of a page or post. In that case, anyone could access the form. If you need to dynamically determine how the form is displayed, you'll want to put it into a shortcode, or use a Wordress page-template in your theme [confusing, because this is totally different from a page!]. Use shortcodes to port your project to any theme, use page templates to lock your functionality into one specific theme. To alter every page, you would put your functionality in a plugin, or in your theme's functions.php file.
https://codex.wordpress.org/Shortcode_API
https://developer.wordpress.org/themes/template-files-section/page-template-files/page-templates/
I am creating simple plugin, and I prepared few pages: add.php, edit.php, delete.php and list.php. I've used add_menu_page and add_submenu_page - so I understand why they are visible in admin menu. How to create page (or custom URL with parameter) without putting this into menu? I'd like to add link to edit page and delete url (code executed by plugin) on listing page - something like in posts listing page but can't find function to achieve this.
Here are two possible solutions for this questions:
How do you add a WordPress admin page without adding it to the menu?
Personally i havent tried it but it like the one where you remove the item from the menu after you set things up like normal.
There is also a great plugin called the WP Router that can help you setup totally unique urls with the callback you desire.
I have a wordpress plugin and i want to create a dynamic page when the user activates the plugin. Page creation is already done. But i want to hide it from the pages menu. No matter how wordpress is configured i want to hide the page.
Page can be only accessed using the url.
Can anyone provide me a solution for this.
You can do it by assign a different value to post_type like dy_page
for more info see: Post_type and How to use Custom Post Types in WordPress 3.0