how to make a website with membership capability using WordPress and Nuxt.js (Part 1)

1. Converting WordPress to a headless cms

WordPress admin panel
the root
JWT Authentication for WP REST API
Advanced Custom Fields
RewriteEngine on
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule ^(.*) — [E=HTTP_AUTHORIZATION:%1]

2. add custom fields to the built-in user profile

3. making custom fields restful

ACF to REST API
add_filter( ‘acf/rest_api/field_settings/show_in_rest', ‘__return_true’ );add_filter( ‘acf/rest_api/field_settings/edit_in_rest’, ‘__return_true’ ); 

“acf”: {
“last_job”: “Waitress”
},
{
“acf”: {
“last_job”: “personal shopper”
}
}

how users find each other?

Members — Membership & User Role Editor Plug

4. search in profiles

functions.php
functions.php

--

--

--

just a simple web developer 👽

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Merging data tables in ThingWorx

Computer System Organization

Microservices is not in architecture it’s in code and culture.

How to Minimize Risks in Software Development Outsourcing

How Does a Desperate Student Get a Computer Science Internship?

Command and Query Responsibility Segregation (CQRS)

Kubernetes HPA optimization based on any metric

Abstraction a Paradox ?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
mahdiyar anari

mahdiyar anari

just a simple web developer 👽

More from Medium

How we create our softwares at Avogg

How HTML page structure can improve your SEO

Native apps vs. Progressive Web apps

Using WordPress as a Headless CMS With React as the Frontend