Skip to main content

Questions tagged [headless]

The practice of decoupling the CMS backend of the site from the frontend.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Creating a Single Instance Custom Post Type with Limited Module Options using ACF and WPGraphQL

Hello WordPress community, I'm working on a project where I need to create a custom post type using Advanced Custom Fields (ACF) and query it via WPGraphQL to integrate with a Headless Next.js build. ...
Jason6's user avatar
  • 1
2 votes
2 answers
67 views

How to I serve the static HTML file at the root directory in a wordpress site?

I am trying to use wordpress as a headless CMS for my react frontend. The build version is completely functional connecting to the wordpress api https://www.example.com/wp-json/wp/v2. The react ...
Rifky Niyas's user avatar
1 vote
0 answers
167 views

Add ACF fields to Repeater items when using REST API

I am currently building a Headless site using WordPress as a CMS, coupled with Nuxt 3, bridged with the REST API. So far, everything’s been great, but I’m struggling with how to retrieve the ACF ...
Alex Ryans's user avatar
2 votes
1 answer
32 views

How do I get the URL section to show use a different domain in the WordPress Admin?

I am currently using a headless WordPress with NextJS and making adjustments in custom plugin index.php file. Within the admin, I am trying to create a better user experience for our content writers ...
Tim Tran's user avatar
0 votes
0 answers
27 views

How to access WP header from Appearance > Header using WP Rest api (React)

Need to use the WordPress Header Section in react js. No plugin is used for plugin it is by default.
Anand Kumar's user avatar
2 votes
1 answer
2k views

Block content rendered with inline CSS. How do I reuse it in a headless setup?

I'm working on a Headless Wordpress setup. I want my Wordpress posts rendered elsewhere. I want to write these posts using the basic Gutenberg block editor, and show them on a separate non-Wordpress ...
ᴍᴇʜᴏᴠ's user avatar
0 votes
1 answer
466 views

Problem with custom WordPress Rest API search route with query parameters

I'm building a search component in a ReactJs application sitting on top of a headless WordPress CMS and I've run into a problem which I can't seem to fix. It might be that I'm doing something ...
Stef's user avatar
  • 103
0 votes
0 answers
74 views

Customizer Changeset, Sidebar and Rest API Custom Endpoints

How can I get rendered sidebar content with REST API inside a WordPress Customizer Changeset ( customize_changeset_uuid )? Related to this question: The customizer should be able to point to a ...
Ünsal Korkmaz's user avatar
1 vote
1 answer
102 views

My wp_update_nav_menu action is firing twice

i am trying to setup a wp_update_nav_menu action in a Plugin. Now I wonder why this is firing twice. I want to update all my pages with this hook in a headless wp implementation. And this double ...
Friedrich Siever's user avatar
1 vote
0 answers
65 views

Anyway to disable the auto excerpt creation?

I am using Wordpress as a headless CMS and getting the posts from the API endpoint in 11ty and I'm wondering if you can disable the auto excerpt generation? I know you can do it in PHP but I can't do ...
chocho's user avatar
  • 11
1 vote
1 answer
495 views

Webhook: save_post action fires wp_remote_post twice

I am trying to implement a webhook in a plugin which should fire everytime a user saves a post. It works fine, but I recive two requests on frontend api. The first request has got a wrong slug. I ...
Friedrich Siever's user avatar
2 votes
1 answer
113 views

Can part of my WordPress website be headless?

Just to set the scene I have a client that has a wordpress site with a mixture of "static" pages and woocommerce shop. The product catalogue has approx "86,000" products in it. ...
kasio99's user avatar
  • 21
2 votes
1 answer
3k views

WordPress REST API not working on localhost

I have a WordPress site running WordPress 5.9.3 that is using a React-based theme, which uses the REST API (v1), to retrieve content and menus from the standard WordPress CMS back-end. However, when ...
Yami Medina's user avatar
1 vote
1 answer
644 views

Wordpress as a CMS - best way to decouple publishing/front-end

For various reasons, this is important, but I am unsure if their are better ways OR other ramifications: CMS = Wordpress as a CMS. WebSite = Static site generator. Currently when a post publishes on ...
Rogelio's user avatar
  • 71
0 votes
1 answer
626 views

Can I use WooCommerce in a headless CMS setup?

I don't have a question about coding in WordPress, but I was just wondering if I have a headless CMS setup, can I still have ecommerce functionality with WooCommerce?
JayDev95's user avatar
  • 179
1 vote
1 answer
1k views

Only expose routes with prefix /wp-json on WordPress using Apache

Pretty straightforward: I want to only expose routes with the /wp-json prefix so that I can use headless WordPress without exposing the rest of my WordPress site to the internet. I'm running this on ...
brad's user avatar
  • 113
0 votes
1 answer
41 views

Add image to each podcast series (or category) in headless WordPress instance [closed]

We have a WordPress instance that we query through it's API. Contents are posts, or episodes from a Podlove plug-in. We have four podcasts, though at the moment only one is set up in Podlove. We ...
Pida's user avatar
  • 103
0 votes
0 answers
224 views

How to get WP GraphQL data on React front-end using Axios?

I want to know how to query data from the WP GraphQL plugin using Axios on a React front-end. I have a headless WordPress installation with the WP GraphQL plugin installed (that part is working great),...
Floyd's user avatar
  • 126
0 votes
2 answers
249 views

Ability to change homepage on Wordpress using API

Is there any way to change a site's homepage (Settings -> Reading), via API? We're running a React app with a Headless WP 'backend', and I'd like to let users change the homepage of their sites ...
Ilya Gurman's user avatar
0 votes
1 answer
731 views

How do I make reusable content blocks for header and footer when using Wordpress headless with another front-end?

I'm setting up a Wordpress project with Gatsby as frontend, and also using ACF for content. But I wonder how you would setup global content parts like header, footer, or any other kind of content that ...
nickelman's user avatar
  • 103
1 vote
1 answer
656 views

How do I get the intended post type of a revision post?

I have a headless Wordpress instance with multiple custom post types. The build takes a few minutes, so I'm building a way to display drafts by fetching the latest revision via an API, like so: $...
max's user avatar
  • 111
0 votes
0 answers
69 views

Using Disqus with headless Wordpress setup?

Does anyone have any experience using Disqus with a headless WP setup? I am working on converting a standard WordPress blog to a headless front end, with the users using the standard WP back end in ...
Anton Emery's user avatar
1 vote
2 answers
643 views

Headless WordPress – Issue with plugin path

Working on my first decoupled site. Backend is handled by WordPress and lives on the subdomain admin.mydomain.com and the frontend lives at mydomain.com. The first issue I saw with the headless ...
INT's user avatar
  • 1,281