Questions tagged [headless]

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

Filter by
Sorted by
Tagged with
1 vote
0 answers
103 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
30 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
25 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
0 votes
0 answers
155 views

How can I point headless wordpress admin panel links to proper urls without using frameworks?

I have a headless wordpress website. The frontend, built using React, without headless WP frameworks, is in the public_html directory. The wordpress backend is in the public_html/back directory. ...
budgiebeaks's user avatar
0 votes
0 answers
15 views

Cross-site WooCommerce implementation

I have two WordPress websites. On the first one I installed and configured WooCommerce, everything is working as expected with a custom theme, several plugins and so on. The second one, with custom ...
MKay's user avatar
  • 179
2 votes
1 answer
1k 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
287 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
58 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
86 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
60 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
430 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
84 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
519 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
574 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
  • 169
1 vote
1 answer
860 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
40 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
206 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
233 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
662 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
606 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
61 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
551 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