I have my own custom gallery CMS which is built using php & mysql. Now I want to make this as a wordpress plugin for my client, meaning my custom gallery admin panel will be shown in wordpress as a single plugin.
How can convert my script to be a wordpress plugin? I am new to wordpress so I really have no idea about making plugins, so I'm wondering if I can just add a few lines of code and just by making a few changes to my script I can make it all work as a plugin?
Before you go any further, you should really question integrating your own CMS into WordPress. I've done this before, and it ended up having a lot of disadvantages in the long-term, like not benefiting from functionality and security updates from the WordPress team. The newer versions of Wordpress provide a lot of useful functions to generate your own custom admin functionality within WordPress, including Custom Post Types, Custom Taxonomies, Custom Meta Boxes, etc.
As an experienced WordPress developer, if I had a client that demanded more than the built-in gallery functionality that WordPress already provides, I would go one of two routes, depending on the requested functionality:
1. Add functionality to the existing WordPress gallery via hooks and filters
This site is an excellent resource to see just how deeply you can modify WordPress with hooks and filters:
http://adambrown.info/p/wp_hooks
2. Create a custom post type, client uploads images to the post as normal
This method you would just create a new 'gallery' post type, and the client would upload images with all of the built-in WordPress interfaces. You can add any additional functionality you need with functions like 'add_meta_box'... here's all the relevant links, including taxonomies if you need categorization and a good sort-by-taxonomy tutorial:
http://codex.wordpress.org/Post_Types
http://codex.wordpress.org/Function_Reference/add_meta_box
http://codex.wordpress.org/Taxonomies
http://justintadlock.com/archives/2011/06/27/custom-columns-for-custom-post-types
If you're absolutely hellbent on using your existing CMS, you can always load your code into an iframe on a custom WordPress admin page, but I don't recommend it based on experience. Here's a link that will guide you in that direction:
http://codex.wordpress.org/Administration_Menus
Just as a post-script, you can do any or all of these things either via a WordPress plugin or a custom WordPress theme. I tend to prefer adding functionality to a theme if I don't plan on sharing it with the world and documenting it, or if the functionality is very client-specific and not reusable.
Related
I need to migrate posts that I specify (maybe by a setting custom taxonomy) to another site (which is a multisite). It needs to be able to copy over the media files, all programmed custom fields, and custom taxonomies. The original site is not part of a multi site. I can't seem to find a plugin with this functionality. Anyone know of one? Thanks!!!
I tried to search google and follow do http://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/. But My wordpress don't button add plugin.
Can you teach me how to fix it?
If you want plugins, you need to use WordPress.org, not WordPress.com.
From the link you provided:
If you are using WordPress.com, then you cannot install plugins.
In order to use plugins, you will need to use self-hosted WordPress.org (See the differences between self hosted WordPress.org vs WordPress.com).
Executive summary: WordPress.com is slightly easier to get started with but doesn't support plugins.
If you want to switch from WordPress.com to WordPress.org, then read our tutorial on how to properly move from WordPress.com to WordPress.org.
Click on 'Plugins', and then on the next page look at the very top to the right of the navigation menu. Do you see the button? The screenshot you provided does not cover that spot, and the navigation menu can sometimes bug up and not show submenu options.
As you got your answer but i want to clear more about it.
first of all you need to clear that with the help of www.wordpress.com you can create your blog but you can't do any extra customisation on your blog. but if you want to do this:-
You need to download your wordpress from www.wordpress.org org provides you full ability to use custom themes or use custom plugins or you can create your own plugin or theme.
hope it will help you and for more information you can visit this link
https://en.support.wordpress.com/com-vs-org/
There are several WordPress tutorial videos available for free on this site. Which cover How to add plugin to wordpress?
How to add plugin to wordpress
The easiest way of installing a WordPress plugin is to use the plugin search. The only downside of this option is that a plugin must be in the WordPress plugin directory which is limited to only free plugins.
First thing you need to visit the Plugins » Add New page inside your WordPress admin area.
Find the plugin by typing the plugin name or the functionality you are looking for. After that, you will see a bunch of listings.
You can pick the plugin that is best, then click the ‘Install Now’ button next to it.
WordPress will now download and install the plugin for you. After this, you’ll notice the ‘Install Now’ button will change into the ‘Activate’ button. Then click on it. It will activate.
Here is my blogging website I develop recently. Below I mentioned all the plugins you should use to develop basic website.
capablemachine.com
Plugins List :
Ad Inserter - Ad management with many advanced advertising features to insert ads at optimal positions
Akismet Anti-Spam - Akismet is quite possibly the best way in the world to protect your blog from spam. Your site is fully configured and being protected, even while you sleep.
AMP - Enable AMP on your WordPress site, the WordPress way.
Chaty - Chat with your website visitors via their favorite channels. Show a chat icon on the bottom of your site and communicate with your customers.
CoBlocks - CoBlocks is a suite of professional page building content blocks for the WordPress Gutenberg block editor. Our blocks are hyper-focused on empowering makers to build beautifully rich pages in WordPress.
Elementor -The Elementor Website Builder has it all: drag and drop page builder, pixel perfect design, mobile responsive editing, and more. Get started now!
Elementor - Header, Footer & Blocks - This powerful plugin allows creating a custom header, footer with Elementor and display them on selected locations. You can also create custom Elementor blocks and place them anywhere on the website with a shortcode.
Getwid - Extra Gutenberg blocks for building seamless and aesthetic websites in the WordPress block editor.
Gutenberg - This is the development plugin for the new block editor in core. This plugin was installed by WordPress.com and provides features offered in your plan subscription.
Illustrations - Illustrations Block, easy to customize SVGs from within the Editor
Jetpack by WordPress.com - Bring the power of the WordPress.com cloud to your self-hosted WordPress. Jetpack enables you to connect your blog to a WordPress.com account to use the powerful features normally only available to WordPress.com users.
Kadence Blocks – Gutenberg Blocks for Page Builder Features. Advanced Page Building Blocks for Gutenberg. Create custom column layouts, backgrounds, dual buttons, icons etc.
Layout Grid - This plugin was installed by WordPress.com and provides features offered in your plan subscription.
LoftLoader - An easy to use plugin to add an animated preloader to your website with fully customisations.
Mobile Menu - An easy to use WordPress responsive mobile menu. Keep your mobile visitors engaged.
Page Optimize - Optimizes JS and CSS for faster page load and render in the browser. This plugin was installed by WordPress.com and provides features offered in your plan subscription.
SyntaxHighlighter Evolved - Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's SyntaxHighlighter. Includes a new editor block.
WPFront Scroll Top - Allows the visitor to easily scroll back to the top of the page.
Yoast SEO - The first true all-in-one SEO solution for WordPress, including on-page content analysis, XML sitemaps and much more.
Add this line in wp-config file
define('DISALLOW_FILE_MODS',false);
I tried to search everywhere for an answer to my question but I still doesn't understand how Wordpress fully work.
I would like to use Wordpress as my news system CMS only. This means, I do not wish to set up my page layout via the Wordpress theme interface. If you guys know another news CMS called CuteNews, I want my Wordpress to operate pretty much like CuteNews.
How can I put Wordpress post entries into my website that uses my own layout (and not using the theme interface in Wordpress).
Thanks!
For people looking at this from google. Check out this blog post
http://sidigital.co/blog/disconnect-your-frontend-from-wordpress
I have used this as a starting point for my detached wordpress site and it's working perfect.
You can actually! Without converting it to a theme. It works for me as I don't do wordpress themes but I use WP to power the back-end of my websites. I utilize WP's CMS feature.
here's a checklist of what you can possibly do to your website.
Your website design (html/css)
Install Wordpress on your server, or locally.
Download Blank WP Template, set this as your default template for your wordpress site.
Edit the Theme's CSS/Header/Footer according to your website design while keeping essential WP codes provided in the template.
Set your News Page as the Blog Entry in WP Dashboard.
If you want some news preview, such as titles to appear somewhere on your site like homepage, you can either call it thru PHP code available on the net or install a plugin in WP.
Items listed above maybe broad, but that's a starting point, as you can research on the net for detailed information on how to go about your website with wordpress CMS.
Best of Luck!
I want to design a Wordpress site that contains all of the usual Wordpress components (blog, contact us, image gallery, etc). I want to have a separate section of the site for "Books" and "Articles".
Admins will be able to enter a book/article with its detailed information (title, author, reference, etc.). I need to have a way for users (non admin) to be able to do an advanced search on these books entered by the Admin.
Should I use Wordpress for the entire site, and write a custom plugin for the book search piece? OR Have a custom PHP page for the searching? OR Is there a plugin that already exists where I could leverage Wordpress to do this advanced search for me? Any information to point me in the right direction would help.
Take a look at this Wordpress Plugin. It should provide you with what you need within the bounds of Wordpress. This should save time from having to write custom PHP code for this functionality.
There are probably other plugins available too that could work for you. One of the benefits of open source is there is a lot of user created content. This should help get you started.
I have managed to setup a blog on localhost quickly using wordpress. But what is ivolved in setting up a commercial website that is not a blog?
Also, should learning to use wordpress be more diffcult than learning Asp.Net or php? I can use these languages to create a website more quickly than using wordpress it seems. I'm guessing it should be possible to create a basic php website and then somehow hook it up to the admin functionality of wordpress to publish content and update it?
Any comments and suggestions will be appreciated.
Thanks,
A few thoughts on this.
First, Wordpress is based on PHP. So if you know your way around in PHP you are able to change anything within wordpress, you can build customized plugins, templates, etc.
However, using Wordpress has nothing to do with the programming languages you know. The fact that you are struggling with it is probably more because you don't understand yet what the features of Wordpress are or what you can use them for.
You can easily use Wordpress to create a simple non-blog website by setting up pages instead of posts. So you would be using Wordpress not as a blog engine but more as what's usually called a content management system CMS (not that using it as a blog engine wouldn't make Wordpress a CMS, but I'm talking about the general usage of those wordings).
A simple Google search might help you find more information about how to accomplish it in your specific case.
Hope this helps!
You need experience with PHP, HTML and CSS to configure WordPress to run like a non-blog website. Is it easier? Maybe, you get what you want but you won't understand what is going on.
If you are creating a static web page, say like a company's web site with little to none dynamic content, use pages (not posts) and create a static front page.
If you wish to use WordPress like a generic CMS, you can either use the Pods plugin or the newly introduced custom post types and taxonomies (new in Wordpress 3.0). You still need knowledge of PHP/MySQL to configure the Wordpress Loop (which is used to display blog posts and other dynamic content) and Wordpress Theme tags (to display name of the current logged in user).
Some plugins help with customizing the site for a non-blog look. Theme My Login and Theme my Profile blends the log-in page and profile page with your theme. However, if you need to customize the appearance, or add new logic, you pretty much need programming.
In short, you would need knowledge of PHP and MySQL; CSS too, if possible. Get your hand dirty building some sites, then what Wordpress offer and does for you with its API will be more relevant.