I love WordPress as it provides plenty of great themes, good SEO and overall content management.
But I'm not always happy with WordPress's original "Add post" and "Edit post" features as it required manual work to provide the content for the site.
However all the data of WordPress site stored in the database which can be easily manipulated by 'handwritten' script (PHP for example). It'd look promising but I'd be afraid of crashing WordPress-specific data structure and invoke mistakes in the site work or even make it inaccessible. Moreover WordPress has its own caching and probably many other things I should take care about before I get started.
So my questions are:
1) Is it even possible and (more important) reasonable to manipulate the WordPress database by handwritten script?
2) If the answer for the 1st question is 'Yes' - is there any tools (for PHP in the first place) which can make this process more save and pleasant?
3) Is there any reading for the task I'd like to accomplish? I tried to Google a little bit but I didn't find any even close to this (I tried a queries like 'wordpress database manipulation', 'wordpress post by php script' and so on).
If you are going to do this, it's safest to use the wordpress API and have your script do things through the API instead. That way if any database structures or features change, the API will incorporate those changes and you won't need to edit your code as much.
Read up on how to use the Wordpress API to make and edit posts. Here's an example: https://netmidas.com/blog/wordpress-rest-api-crud-example-with-a-post/
Related
I want to use the 'Ultimate member' WordPress plugin since building that kind of system is a bit tedious.
Unfortunately, no.
As others have pointed out, plugins rely heavily on Wordpress' architecture and functionality for their own functionality.
You may be able to find a service which offers an API for account creation and authentication, but chances are you'll be using custom content for your users, which you'll need a server-side language like PHP (used by Wordpress) for.
Wordpress really isn't too much of a pain to set up, and if you have all the HTML, CSS and JS files complete, you can throw it together in a few hours.
If playing around in WP code really is not for you, there's even plugins to do it for you. Just complete the "5 minute setup" and away you go.
I'm researching to see if building a full website for a hotel be a good idea to do on WordPress.
I read that wordpress is okay but there are better options.
I want to design and code my own front end look to the website, but have the backend on a stable platform that can take all the reservations seamlessly.
My main concern is to be able to have a backup of all the files and easily switch to another server in case something goes wrong.
I can host the website on my server or host with the service you suggest that comes with the platform all together.
Any ideas and/or suggestions are greatly appreciated!
There are other options, no doubt, but yes, it can and is really possible to build it using WordPress as CMS.
If you want to design and code your own theme, you'll need to study the WordPress Theme Structure and, since you'll build it by yourself, you'll also need to develop plugins to create custom post types (aka CPT) to make the hotel management easier on the WP back-end.
About the theme structure, files, child themes and everything, I'd recommend you to read https://codex.wordpress.org/Theme_Development
About the plugins development: https://developer.wordpress.org/plugins/
About Custom Post Types: https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/
About the backup: it's super easy and you can even make a full backup using free plugins via back-end. But if the site goes down you can easily do it via FTP downloading only wp-content folder and the database. It's really simple to migrate from one WordPress to another, or from host to host.
About the hosting, you'll need to use a server if you want to build this project. There's a difference between wordpress.com and wordpress.org
The .com is simpler, you are not able to build everything you want. The .org is the open source project, which you get the files, upload to your server and connect to database (MariaDB or MySQL). Most hosts offer automatic installation for WordPress and, from there, you can change whatever you want and need.
Note: many developers create CPTs INSIDE the theme's code, but this is not recommended by WP as you can see in We recommend that you put custom post types in a plugin rather than a theme. This ensures that user content remains portable even if they change their theme.
WP is not really hard, after 1 week studying you'll see yourself getting over most difficulties. Even if it takes longer, don't give up. There's a huge community to help you with WP questions.
Hope it helps and I'm sorry my bad writing, I'm not an english native speaker.
C ya
This is my first time migrating a website from Joomla to Wordpress. The website: www.sfspas.com
1- I am worried that the website will not transfer well or that I will loose functionalities.
Can I duplicate the code and just transfer that version to Wordpress? (Keeping the website live via Joomla and creating in parallel a new website www.sfpsas222.com in wordpress to test things out?)
The website has to be live 24h/7 and It can't just break. How can I make sure the inventory will be uploaded correctly and the website will look as it looks now?
2- Once transferred. If I want to change the appearance of the index.php can I simply upload a newly designed index page on Wordpress? How can I go about it? Any suggestions will be highly appreciated!
Thanks!
I recently transferred one of my sites from Joomla to Wordpress and I can say, that it's not just one-click action. Both frameworks have their own structure, you can't transfer content and users directly.
In short, for transfer you need to create a simple plugin which will take all require info from Joomla (articles, users, etc.) and inject it into Wordpress database, converting prior to that, if necessary.
And no, you CAN NOT do this on 24/7 running site. Don't even think about it. Duplicate your site, convert its database to WordPress, check, that everything works properly, and only then put it online.
It's not an easy process and it requires some knowledge. Even if some kind of Joomla-Wordpress converter exists, you'll have a lot of things messed 100% guaranteed. I've made a lot of transfers in my life, so I'm pretty sure of it.
Providing you have a required knowledge of database management and PHP, just be patient and spend some time. If you don't - hire a professional. There's no easy way here, because Joomla and WordPress are like car and bike. Both are a transport, both run fast, but you can't convert one into another without any effort.
I'm creating a new site in Wordpress and found out this plugin is very powerfull and ended up creating customs fields for almost every part of the website, I've even placed WYSIWYG editors instead of built in ones because it's easier for me to code my templates.
Is it ok to build an entire site with Advanced Custom Fields or it may become an issue in the future?
Since the webpage is based on static products data, WP or plugins updates will rarely be needed.
Is it ok to build an entire site with Advanced Custom Fields
IMO
It is "ok" to build an entire site with a plugin, but would I recommend it? probably not.
The only reason is because you never know what might happen to your site, if you install a "bad" plugin that breaks ACF plugin.
Or let say for some odd reason they stop providing support for ACF or updating it for whatever reason.
I've seen a lot of apps that have a good support system die out or get bought up by conglomerate companies and they stop public development and support.
WP or plugins updates will rarely be needed.
Regardless you should keep updating your wordpress to current versions, you never know about a security exploits people find, wordpress core dev push out new versions to battle those exploits.
This can apply to plugins as well.
Personally
I like to build things myself without the reliance on plugins in general.
That way I only have the tools that I need, instead of extras that a plugin may come with.
Sometimes a few lines of code can go a long way instead of depending on plugins that may have thousands of lines of code.
Let alone wordpress has a lot of native options baked in that you can rely on or extend as opposed to relying heavily on ACF or any other plugin.
I recently stumbled upon Etherpad, it's a collaborative writing tool
http://code.google.com/p/etherpad/ - main project page
online Examples:
http://piratepad.net/
http://ietherpad.com/
http://typewith.me/
I want to add this engine somehow to my wordpress and let people collaborate their posts,
I'm wondering if it has been done before and/or does it take more than
shared hosting (that is what I have) to do it [server capabilities or what-not] ?
In general, I think this is a complicated way to go about it. Also, Etherpad allows some very basic font formatting but no images and such things you might want to include in a blog. Instead I suggest looking for some Wordpress plugin for collaborative writing, and you might find something less "real-timey" but perhaps good enough.
Or if you really want to try with Etherpad:
Etherpad needs lots of memory (RAM) to run. A typical configuration is 1 GB, but it might be possible to get by on 128MB dedicated to Etherpad. This means you'll need at least 256MB in total for a first attempt. Your shared host also needs to have a Java server installed (typically Jetty) and some proxying server (typically nginx). All in all, you have some work ahead of you in just getting Etherpad up and running. After that, integrating into the Wordpress blog editor. If/how this can be done, I don't know. I'd probably do a client-side javascript-hack to get the Wordpress textarea or richtext editarea to update from the Etherpad readonly view, which is the only place where you can get the contents of a pad as more-or-less raw source text.
A simpler solution would be to just add an Etherpad page through an iFrame. See this post for example - http://www.knowledgepolicy.com/2010/02/embed-etherpad-into-blogpost-or-on-any.html
In theory it's possible to replace Wordpress' editor with an Etherpad Lite iFrame. Etherpad now allows image/font editing and table support as plugins.
Java is no longer required for Etherpad, NodeJS however is.
Here is a plugin that is in development that does what you want - however development seemed to stop in early 2012.
http://participad.org/ seems to be the best solution in this space to date. I haven't tested it on my own site, but they have an at least partially-working demo online.
Yes! It is possible. WordPress now has a plugin. The plugin has three modules which enables an Editor in dashboard and let you edit via front-end.
You can find more details on their FAQ page.