DEV Community

Discussion on: Seven reasons to learn Vue.js in 2019

Collapse
tanjibkhan12 profile image
Tanjib Khan

Is it possible to use wp plugins when using Vue with WordPress? I mean if you use Vue can you install and use wp plugins functionalities if you need any plugin to install for any specific needs?

Collapse
codestuff2 profile image
Adam Whitlock

I suppose it depends what you need to do. If you use Vue you can use it to do ajax calls through a rest API endpoint you set up with WordPress and php. Then you can do database manipulation, call other WordPress plugs or basically do anything else through this API. Vue essentially is just front end so you still need to wire it up to the back end somehow

Thread Thread
tanjibkhan12 profile image
Tanjib Khan

How can I change frontend without vue? Is there any other options

Thread Thread
codestuff2 profile image
Adam Whitlock

In wordpress everything is ran server side with PHP, and you can use php to write template files, and markup very easily. There are also other libraries like handlebars you could use to render templates from data as well. Just depends on what you are familiar with and what kind of data you are displaying.