Wordpress as CMS, Without Using It As Website Platform - php

What is the best method, if there is one, of using Wordpress as a CMS for users to input data while not actually building the website on the Wordpress platform?
One possible solution I've found is using a PHP class called "WPGet" (http://peter.upfold.org.uk/projects/wpget) which fetches directly from the database.

You could use Wordpress' API calls, but depending where your "custom built application" sits, it might require including numerous files in your code (not very fun/efficient)

I have a site that requires constant updating. It's a golf club site: results, news etc all updated via wordpress by the club, or individuals with interest (juniors, ladies, seniors each have a mini-site) - and not always by me - so i have a front end, the standard site with static .php pages, which i then feed data to, by calling on posts marked in categories from wordpress, relevent to the site's page. The coding is easy and it's a quick and simple way of using wordpress as a cms, but it does strip away most of the Wordprss functionality, eg. comments, But I even use it for galleries with lightbox.
Like i say - it's nothing major, but sounds similar to what you're asking...?

Related

Use Wordpress or another CMS within a web application?

Apologies for the broad question, but I don't know where to start. I have a php web application for members with various functions and features. On the dashboard, I need to implement some dynamic news - the kind of news that that non-developer can write and publish without any interference with the source code.
Can I implement Wordpress into my existing app so that authors can login, write then publish so that my dashboard can display the latest posts?
At its most basic level, I'm thinking:
a new subfolder for Wordpress with its own separate database.
a plugin to display the latest posts content only
an iframe on my dashboard to display the output of that plugin
But all that seems like a very hacky workaround. Is there a more native way of doing this? Or is there another CMS library that could achieve the same result?
I have a solution that I am running with. It's a separate Wordpress site with the latest posts accessed via the built-in API (https://developer.wordpress.org/rest-api/reference/posts/)
I will be getting all the posts in a category with:
curl https://example.com/wp-json/wp/v2/posts
Then storing the posts in array before looping through that array to display the title and content on my dashboard with:
curl https://example.com/wp-json/wp/v2/posts/<id>
where <id> is from the first call.
This is clean, native and serves the exact purpose I need. The member info, while secured doesn't need to be top-secret, so we're just using the Wordpress password-protection with the same password for all posts so as long as the API calls are server-side with https, the security works too :)
Looks like you want Dynamic News Feature in your existing PHP Web Application.
And you want to build that specific feature in Wordpress.
I don't think it's a good idea to use Wordpress CMS for small features like this.
IF you already have full functional PHP Web Application then I would recommend to use same Web Application to build Dynamic News Feature which will allow users on the site to post.
I don't think that's very complex.
IF you want to get into Wordpress ecosystem then you will need to convert your PHP Web Application into Wordpress and then you can build additional functionality.
I think that's the ideal way to go. Let me know if more questions. Thanks.

Wordpress plugin or Page Template

I am running a wordpress website, and i am going to create a "Meet The Team" page.
We have our own custom built system internally which has users and their positions in the company already in the database so i will be using this information.
I am unsure whether to make a wordpress plugin to display this data or just simply create a page template to display it.
Does anyone have any ideas what would be best or does it really not matter?
Since the team is probably not that likely to change often I would say go with a Page Template. The main benefit being that in the future you might want to teak it a bit (sort members in a particular fashion, have different sized avatars, etc) and doing these changes would be much easier if its just a page template. If your team changes often and there is a lot of dynamic data you pretty much have to go with the plugin though

Jooma 3.1 Templating - Tutorials/Documentation?

I am to develop a Joomla 3.1 Template. The template should consist of a static header and footer, as well as multiple pages, all of which need their own styling. Further, the client would like to be able to add 'events' to a specific listings page. Customers should be able to book said events via a simple form.
Thanks to some really basic guides, I have the header and footer down, as well as some simple template options. However, I am now running into some problems;
How would I approach the content section? Ideally, a page would consist of multiple, editable sections. The client would be able to edit said sections in the backend without having to deal with or accidentally changing the layout or styling of the page itself. Since there are multiple pages, I obviously need different views/containers for each of them. Is this possible and if so, how?
Another problem is the documentation, which I found to be very lacking. Even google only got me so far (basic structure, index.php, templateDetails.xml and so forth). Are there any other resources I may have missed or do I really need to refer to other templates (most of which, obviously, aren't free) and use var_dump all the time?
Writing this, I just realized that I could theoretically build a template for every single page but ... that surely can't be right, right?
If someone could provide a basic outline or at least tell me how you personally would tackle a project like this, it'd be very much appreciated.
All the best
Edit;
I just found some video tutorials but since my bandwidth is limited, I cannot watch them. Please take this into account when writing an answer. Thanks.
I have only one word for you :
GANTRY :D
gantry-framework.org
Joomla revolves around menu items that point to components. For each menu item, you can assign modules to different positions within the template to create a unique page. You only need one template if you really understand how Joomla templating works.
Joomla has very good documentation here - http://docs.joomla.org/
Few things to remember -
Component - this is a type of content or app of sorts. A component will define what content is and how it is displayed. This can be anything from blog articles and categories to an event registration system to a message board or social network. Menu items generally will point to a view in a component.
Modules - these are used to display additional content around the component output. This can be a menu, or a login box, or a weather widget or anything else you can come up with. Modules can be assigned to or excluded from the various menu items on your site.
Plugin - plugins are used to change the final output on a site. They can be used to insert Youtube videos, or forms within content, or even to alter the meta tags on a page.
Understanding how extensions work is an important first step. Once you get how those work, learning how templates and template overrides work will give you most of what you need to know to build a basic Joomla site.

Include selected parts of an external site

I have gotten a question from a friend who has a website and a blog (Wordpress). They are on completely different domains. As it is now, each time she enters a new article on the blog, she manually has to update the "News"-section on her website. Now, she would like it to update automatically. So when she updates her blog, the newest article is also shown on the website.
Is it even possible to achieve this and can you advance even further, like letting say the three most recent articles display in the website?
Wordpress has a buil-in RSS system. Use that blog RSS on your other site to automatically show them as news.
If you want to manually create it, here is a good manual on how to start that.
Yes, this is called web syndication
Many blogging frameworks already offer syndication support out of the box, using RSS, Atom, or a comparable system.
All you need to do is get the CMS on her website to read the syndication of her blog and fetch the latest articles from it.

Integrating simple PHP blogging system into existing website

I want to, create blog page in my website.
There are bunch of huge blogging platforms such as: Wordpress, Blogger ... But the problem is, they are offering a loads of unneeded functions. Of course, I can create simple blog. But it will cost a lots of time and I don't want to reinvent the wheel.
So what I need is, "core" functions of blogging system such as:
Adding, removing, editing posts, inserting attachments, images o posts
Pagination
I don't want to integrate wordpress because of reasons that I explained above.
Any suggestions?
I used cutewnews for a while when I was new to coding (http://cutephp.com) it's pretty much the same as a blogging system. Create posts, edit posts, archive posts, categories, template is very customizable, allow/block comments, require users to register in order to add comments, block IPs, WYSIWYG editor, etc. It's all done in the back end and then you add a few lines of code in your page and the posts will appear. You can also designate how many you want to display per page. It's simple but effective and free. I believe there is a link at the bottom of the script going back to http://cutephp.com/ but you should be able to find it and delete it. It takes about 2 minutes to install and get set up. You don't even need mysql. Will work with any php frame work or coding style as long as you have the ability to create your own blank page where you can plop the code.

Categories