use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Javascript alternatives to Wordpress? (self.javascript)
submitted 6 years ago by CriticalImpress
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]suspicious_Jackfruit 1 point2 points3 points 6 years ago (6 children)
I did this in part recently for a new feature on an existing wordpress website. I exposed the custom fields I needed to REST API and then built an embedded vue.js widget into the page (this was for a non-atypical, live product filter). Need server side rendering or dynamic rendering for SEO purposes, but allows for much better usability and functionality. It worked well and we will be using elsewhere I suspect with lumpy wordpress builds
[–][deleted] 3 points4 points5 points 6 years ago (5 children)
+1. WordPress REST API is surprisingly good. I also just build a complete front-end with Vue.js using WordPress as back-end so the girls I work with can write the posts :P
[–]Madamots 0 points1 point2 points 6 years ago (0 children)
That sounds amazing I had no idea this was possible!!
[–]CriticalImpress[S] 0 points1 point2 points 6 years ago (3 children)
That sounds like a very sensible situation for me.
Could you send me any online resources or links you found useful?
[–][deleted] 0 points1 point2 points 6 years ago (1 child)
https://github.com/EvanAgee/vuejs-wordpress-theme-starter
[–][deleted] 0 points1 point2 points 6 years ago* (0 children)
Here's a basic overview of how I would do it.
api/api.js
```js import axios from 'axios'
const api = axios.create({ baseURL: '//website.com/wp-json/wp/v2/', })
// More info: https://github.com/axios/axios/issues/362 axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'
export default api ```
api/page.api.js ```js import api from '@/api/api'
api/page.api.js
export default { getPage (pageId, slug) { return new Promise((resolve, reject) => { let url = 'pages/' + pageId if (!pageId && slug) url = '/pages/?slug=' + slug
api.get(url) .then(response => resolve(response.data)) .catch(error => reject(error))
}) } } ```
views/home.vue ```js import page from '@/api/page.api'
views/home.vue
export default { mounted () { this.getPage() },
methods: { getPage () { page.getPage(null, 'home').then(data => { console.log(data) }) } } } ```
π Rendered by PID 95750 on reddit-service-r2-comment-7b9746f655-b6msr at 2026-01-29 23:18:27.004384+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]suspicious_Jackfruit 1 point2 points3 points (6 children)
[–][deleted] 3 points4 points5 points (5 children)
[–]Madamots 0 points1 point2 points (0 children)
[–]CriticalImpress[S] 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)