Questions tagged [front-end]

The part of a site that visitors see and is controlled by the currently active theme.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
30 views

How to add entity in WordPress that have metadata such as name, age

I work on CMS for Education academy and we need to add data about students in small horizontal cards. I need to know how to create entity has one to many relationship and pass it to the frontend. And ...
Mariam's user avatar
  • 1
0 votes
0 answers
8 views

custom user profiles like linktree fully customizable on the front end

hey so im creating a website for a client that wants random people to be able to register on the website and when they register a profile page to be created for them with custom design (that the ...
Vladimir Kambovski's user avatar
1 vote
1 answer
307 views

Restricting page by user role

I want to restrict certain pages according to user role for my wordpress site, so for example, when user with customer role wants to login to example.com/about page, they will be redirected to another ...
ByWorld's user avatar
  • 11
0 votes
0 answers
23 views

Add a toggle show/hide spam button in comments

Is there a way to insert a button in the comments that will toggle show/hide spam statuses in the current posts while leaving the other comments unchanged?
Marko Maki's user avatar
0 votes
1 answer
36 views

Show/hide comment status in front-end

Is it possible to put a button in the comments(front-end) that would show/hide comments that are in spam status in the current post?
Marko Maki's user avatar
0 votes
0 answers
69 views

Display Any Field fromAdmin Panel in Frontend via Shortcode?

Frontend Admin by DynamiApps allows you to display/embed any ACF field in frontend. What is the best process to replicate this concept to display any field from any admin page in front end? i.e, We ...
1000K's user avatar
  • 1
0 votes
0 answers
14 views

How to reproduce the post format field in a front end form?

I am looking for a php snippet to display the field "post format" of the wordpress admin in a front end form. It is a conditional field, and some of them need to have a special output (ex: ...
Aurore's user avatar
  • 1
0 votes
2 answers
3k views

'useSate' error when using React on the frontend in custom block plugin

I keep getting this error with React on the frontend Uncaught TypeError: Cannot read properties of null (reading 'useState') I'm trying to use this hamburger component (https://hamburger-react....
Shelaine's user avatar
0 votes
0 answers
164 views

wordpress rest api authentication failed

I wanted to upload an canvas element as image to wordpress with rest api, i found following error, "rest_cannot_create" data : {status: 401} message : "Sorry, you are not allowed to ...
Safayet hossain's user avatar
0 votes
0 answers
29 views

500 error for regular users, not for admin

Not sure what's going on here. Some of my pages (eg https://beatthatflight.com.au/) are getting 500 errors. However other pages (https://beatthatflight.com.au/index.php/2022/12/19/56-fast-free-easy-...
Mark Mayo's user avatar
  • 105
0 votes
1 answer
35 views

Checkboxes showing on the backend, but not on the frontend?

I've gone through all of the "Q's and A's" on the forum, however have not found a suitable solution yet. I've created numerous forms on WP Forms, and have important "checkboxes" ...
Juan's user avatar
  • 1
0 votes
1 answer
28 views

Putting landing page made with nextjs on wordpress website

I made a one landing page website with nextjs locally, and I already have an online wordpress website with nothing on it, I need to put that page on it in a way that I could be able after that to ...
soulayka's user avatar
0 votes
0 answers
119 views

Frontend redirect after delete post in wordpress

I'm using the following link to delete a post in the frontend of wordpress: function wp_delete_post_link($link = 'Delete', $before = '', $after = '') { global $post; if ( $post->post_type == 'page' ...
Tyler's user avatar
  • 1
0 votes
1 answer
120 views

What is the best way to disabled front-end when using Wordpress has headless?

So far, when I was using Wordpress as Headless CMS, I've always constructed my API with GraphQL or by simply add customs REST endpoints but recently after an SEO audit, the armageddon has come. I'll ...
FloJDM's user avatar
  • 164
0 votes
0 answers
677 views

using wp_insert_term to create custom terms for a custom taxonomy from frontend form,

I have a form which allows certain roles to add custom terms to a taxonomy. My taxonomy is called Genre (slug genre) <form method='post' enctype='multipart/form-data'> <input type="text&...
user1348927's user avatar
1 vote
0 answers
106 views

Translation for frontend

In my plugin I have many strings to translate for the backend and only a few for the frontend. For the visitors of the website it is nicer to read the words in the language of the site. Is there a ...
pehu's user avatar
  • 11
-1 votes
1 answer
27 views

How was this menu system created?

Can anyone give me a clue how this menu system was created? https://40thdems.org/ This is a WordPress site using the Divi theme. Thanks in advance for any pointers!
user1147171's user avatar
0 votes
0 answers
54 views

How to limit post (Exception pages) for current user in each role in front end?

Thank you for reading this question I need an option or code for each user in each role to see only their posts at the front end, and other users' posts to be completely hidden from them, even in ...
booklover's user avatar
0 votes
1 answer
1k views

Push Contact form 7 variable to front end after submission

I have a contact form 7 form that's sending information to an API. I want to display the API response on the front end. I record the user information, then post it using wp_remote_post, with my ...
KiriqN's user avatar
  • 11
1 vote
1 answer
2k views

ACF: Only get first row of a Repeater Field

I have a repeater filed called "images" and inside it I have a sub_filed called "image". How can I get only the first row value? Here is my code <?php if( have_rows('images') ): ...
SilberArt's user avatar
0 votes
0 answers
19 views

Is there a layout to place 2 same sized images in two columns on the WordPress page?

I need to place two images on a landing page of a WordPress site as below. I don't find a suitable layout option under Flexible Content field group that fits my requirement. I believe I should be able ...
CodeForGood's user avatar
0 votes
1 answer
224 views

Bootstrap 4 Carosuel with ACF Repeater field

Given this HTML code, how can I create a dynamic Carosuel with thumbnails using Bootstrap 4 that can be updated in back-end using ACF Repeater? My Repeater field is called carousel_repeater and inside ...
vopakor's user avatar
0 votes
0 answers
205 views

Render metabox gallery in frontend

I'm building two metabox galleries on the same page with the help of a tutorial. The code works fine. However the galleries are automatically displayed after the content on the front end. What I would ...
Mathieu Préaud's user avatar
0 votes
1 answer
662 views

How to properly delete custom post type posts programmatically

I created a new custom post type that users can add new post from frontend and it works as desired. Now, I´m trying to add a button to delete. This is the code triggered by the button: if( ...
Rafa Carvalhido's user avatar
1 vote
0 answers
39 views

Posting to a Custom Post Type from front end - user generated content

Is there a fast and reliable way of posting to a Custom Post type from the front end? My use case is for creating a daily checkin for a fitness trainer. I have created the necessary fields using ACF. ...
thedamntrips's user avatar
1 vote
0 answers
35 views

How to set different languages for front-end and back-end

I'm trying to set Russian language for my website but leave English for back-end. The WPLANG is set for ru_RU, but the site is shown still in English. Thanks for any advise.
user2127407's user avatar
0 votes
0 answers
144 views

Allow user to select role from front end edit profile form

I have a front end edit profile form working fine (thanks to previous answers) I'm having trouble adding a form element that lets the user change their role. I've tried adding: ...
Jo_pinkish's user avatar
1 vote
1 answer
62 views

How do I create a way for users to assign categories to a post from the frontend of the website?

Im looking for to add categories from a frontend post. I found a thread about this topic How do I create a way for users to assign categories to a post from the frontend? almost 9 years ago. There was ...
Alex Lytle's user avatar
0 votes
0 answers
113 views

Preview url not working outside wp-admin

So, I created a link in the frontend which allows the user to preview their post. However, when I click on it, it takes me to the published post instead of previewing the changes I made. Here is what ...
Mike Bensen's user avatar
1 vote
0 answers
11 views

How to use WP account on third party module

Our client has an existing website which runs on wordpress. They want a separate module which will be made by us. This module won't be made as a Wordpress plugin and will therefore be hosted on a ...
Jonty Sponselee's user avatar
2 votes
0 answers
617 views

How to change upload directory based on frontend form input name or ID?

I created a frontend form using a plugin which allows logged in users to create draft posts. There are 3 file upload areas. I need 1 of them to use the default public WP media upload folder as usual. ...
user197754's user avatar
0 votes
0 answers
396 views

How to prevent my external API call from being called by anyone but me (my site)

My site sends different data to an external API under different circumstances. Luckily, most of it happens on form submissions, but there are a few instances where I need to make an API call from the ...
Daveh0's user avatar
  • 189
0 votes
1 answer
61 views

Excess dependencies

I grabbed gallery block from Gutenberg github (Gallery block) and I wanted to modify it in following way: only first image is output to the html, while the rest are sent to lightbox javascript plugin. ...
Lovor's user avatar
  • 881
0 votes
1 answer
605 views

How to edit custom table data in frontend

I am trying to edit the data from the table in the frontend. when I click the edit the form doesn't anything it show only empty field Html Code <form action="" id="postjob" ...
Snow's user avatar
  • 1
0 votes
0 answers
23 views

Detect only Tablet in WP [duplicate]

I have an annoying issue, I can detect mobile devices ( with wp_is_mobile() ) on WordPress. But I want to detect only Tablet devices. How can I do it?
Nima Shahin's user avatar
1 vote
0 answers
30 views

Simple reservation system for a card game

I would like to set up a wordpress site for scheduling a four-player card game. Assume each post is created to announce a card game with a date/time/location provided. Assume each user is a registered ...
weihiluo's user avatar
0 votes
1 answer
18 views

Plugin frontend page design irrespective of the theme used

I am writing a WordPress plugin which will have some front-end pages including inputs, forms, buttons etc. The plugin should be usable with different themes. But I am confused or don't know how to ...
Robert's user avatar
  • 1
0 votes
0 answers
95 views

Adding shortcodes to multiple pages with function

I am building a plugin that allows users to display information to the front-end of a website. When users want to display this information they have to add in a shortcode to the page they would like ...
Gianni's user avatar
  • 1
0 votes
1 answer
183 views

Need Help to make a logic for editing posts in Frontend

I have an issue, I'm creating classified website, so I have a login and a registration form and users can post their own adverts. They have account page where they can see their posted adverts, I'm ...
AkForDev's user avatar
  • 105
0 votes
0 answers
289 views

How to handle wordpress sso authentication with gatsby js?

I have a working wordpress setup with sso login, when user try to logged in he is redirected to another website to login and redirect back to the main site if successful. I want to use gatsby js as ...
Sandy's user avatar
  • 3
0 votes
0 answers
94 views

How to show WordPress admin dashboard forms on front-end?

I need to show some WordPress Admin forms like "Dashboard > User > Add New User" or some parts from Woocommerce Admin like "Edit Product" on front-end without using any ...
Hossein Hashemi's user avatar
1 vote
0 answers
44 views

How to display images of a post as a media gallery

Situation I used user-frontend API to make user capable of uploading image. But this post page posts the image and the image is visible in media library(which contain other previously submitted posts ...
Shiv Kumar Yadav's user avatar
0 votes
1 answer
87 views

Let any visitors delete a post if they know Id nr & password?

I've got only one function left that I need to solve (if it's solvable). I've got a frontend post system for unregistered users. But there are no way for the users to delete a post if they later want....
JoBe's user avatar
  • 171
1 vote
2 answers
3k views

Force user to change their password on the frontend at the first login and password policy

I have 3 users roles on my platform with no access to the WordPress backoffice "external_user1" , "external_user2", "external_user3". I need to force every user with one of this roles to change his ...
Samuel's user avatar
  • 344
0 votes
1 answer
29 views

How to use jQuery(...).material_chip inside WordPress?

Although I have imported materialize.js (v1.0.0) inside my plugin in WordPress with $pluginpath = dirname (plugin_dir_url( __DIR__ )); $pluginpath = str_replace('\\','/',$pluginpath); $thepath = $...
Dimitrios Ververidis's user avatar
1 vote
0 answers
110 views

How to get the upcoming post ID from front end?

Searching with "Next Post ID" is giving me the Previous/Next Post Navigation, but my question is not related to that. In WordPress Admin panel, when we're attempting to create a new post the post is ...
Mayeenul Islam's user avatar
1 vote
0 answers
40 views

Preview post on frontend before submitting it?

I found a related (old)post here I'm currently using usp pro as a frontend. I'm creating a free pet memorial site, and want the user to just fill out the form, (NO ACCOUNT REQUIRED),and the post is ...
JoBe's user avatar
  • 171
1 vote
0 answers
45 views

How to upload images from wordpress front-end (the first image must be thumbnail and the rest without first must be in gallery woocommerce product)

How to set first image from $_FILES array to product woocommerce post thumbnail and the rest put into woocommerce product gallery. I have this code: if ( ! empty( $_FILES['thumbnail'] ) ) { ...
Mariusz's user avatar
  • 21
0 votes
0 answers
2k views

Front End User Registration - How to Save ACF Values?

Overall Problem: ACF fields in front end registration not saving to user profile Having some trouble with front end registration and ACF. I've got ACF fields attached to a custom user role, but I'm ...
Faye's user avatar
  • 651
0 votes
2 answers
722 views

How to do the simplest possible frontend ajax call from a plugin?

I'm trying to make this as simple as possible just to get the basics down, but I keep getting a 400 error and 0 response from admin-ajax.php. I just want to hit ajax with some data. Here's my js: ...
pg.'s user avatar
  • 141

1
2 3 4 5
12