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
0
votes
0answers
4 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 ...
0
votes
1answer
7 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 = $...
0
votes
0answers
15 views

Suggestions on how to properly code a web form to submit CPTs from the frontend

I am looking for a way to code a secure web form to provide a way for my users to submit custom post types from the frontend on WordPress. Not really interest in using a plugin for this case though. ...
1
vote
0answers
17 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 ...
0
votes
0answers
10 views

Advanced Custom Field gives error on only one category and works fine on other categories [closed]

The backend of my WordPress post page has a text field input that I made using Advanced Custom Fields. I input a page ID and the post page redirects to that page. I have about 15 landing pages that ...
0
votes
0answers
14 views

Allow up to X Concurrent Login Sessions Front-end

This is my front-end function function env_login_member() { if(isset($_POST['env_user_login']) && wp_verify_nonce($_POST['env_login_nonce'], 'env-login-nonce')) { $user = ...
1
vote
0answers
11 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 ...
1
vote
0answers
12 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'] ) ) { ...
0
votes
0answers
60 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 ...
0
votes
0answers
26 views

Front end Ajax custom file uploads with multiple file return 404 not found, single file upload working perfectly

in the templete file I gave the below code, <input type="file" name="files[]" id="files" multiple onchange="javascript:updateList()"/> <div id="...
0
votes
2answers
43 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: ...
0
votes
1answer
37 views

Gutenberg Editor: display error with a combination of transform and background-attachment:fixed

For the output of post content, the main column is constrained to 700px. This allows for images etc. to be aligned left and right whilst remaining within the content column. Adding a solution using a ...
0
votes
0answers
12 views

Allow Users To Copy Posts From The Front End

I want to create a grid of posts (a CPT) that a logged-in user will access from the front end of the website. The user can select which posts they want and click submit which would make a copy of the ...
0
votes
0answers
27 views

Having issue in feature image upload from frontend. We used “Wp User Frontend Pro” Plugin

In frontend side. feature image can not upload. Its showing error like this: Showing error like: Please provide solution.
0
votes
0answers
12 views

WordPress Nexus Theme front-end editor broken

I did a migration of a wp site and now the nexus front-end editor is giving following error: error transferring data. please try again later. I read a solution on this forum like: but can't seem to ...
0
votes
0answers
20 views

Frontend posts table and post edit form

I would like to create profile page, where user can add, edit his own posts. The same functionality as in Wordpress admin, but at frontend - in the same style as the whole website. I want to have ...
0
votes
0answers
24 views

Custom repeater field trying to save custom value

I would like to save each value like this al_ttl_1...al_ttl_2 and how I can display it? Actualy Im using this code to save all value. With the code below I can't see the custom field on backend ( it'...
1
vote
1answer
40 views

Media library not working with wp_editor() on the front end

Very related: Add Media has stopped working in the front end since 4.5 update I want to run the wp_editor() function to load the classic WordPress editor on the Front-End. I need to do this out of ...
0
votes
1answer
147 views

frontend submit post jQuery clone row won't save

Why the cloned value won't save in DB ? It's working fine for the first row (not the cloned one) but when I add new value with jQuery(.clone), new added value won't save... jQuery $('#add-embed').on(...
1
vote
1answer
65 views

Frontend Post - Allow Only Image File Upload

How I can allow user to upload only IMAGE file ? function.php // Insert Attachment function insert_attachment($file_handler, $post_id, $setthumb='false') { if ($_FILES[$file_handler]['error'] !==...
0
votes
0answers
89 views

How to upload Web-record Base64 Wave Audio file in WordPress Post (front-end form)

I created a WordPress post form that works well And I want to add a field: Browser recording audio file Based on base64 - (blob file) And upload when posting. My javascript code is : https://...
0
votes
0answers
98 views

Add a post with react and axios

I tried to add a post from the front end with react and axios, the post added successfully with just the title but the featured image is empty, and when i checked the media the image is miising.Bellow ...
0
votes
0answers
15 views

How to add extra input fields to paid members subscription's form using the hook in functions.php?

I have to insert from file functions.php a date field in a front-end form that saves the data also in the backend. The plugin I used for the form is paid members subscriptions
0
votes
0answers
12 views

table/csv input that allows custom front end displays

I need an easy way for a client to import (from a CSV) and then manage a table of contact details (roughly 150 rows, roughly 9 columns) and then for me to create a custom non-table front end to ...
1
vote
1answer
41 views

Redirect user after successful email change

I set up a front end form for logged in users to update their email address. So far it is working however I want the user, after confirming the email change via link sent to the new address, to be ...
1
vote
0answers
38 views

Uploading video to google drive via frontend [closed]

I need to add a functionality to a website that I am developing which allows users to, Upload videos from a front-end form to google drive. Save its shared URL/embedded code to the site's backend. ...
1
vote
1answer
40 views

Frontend submission upload image via external url

I have AJAX form to get movie data by movie id and post this data into new post. This is my function, It's works very well, But i can't upload image via external URL. // Image URL $poster = '//...
0
votes
1answer
92 views

Replace image name on upload to the new post name on front-end form

I'm using this form to replace featured images and post title on my frontend form: <form id="featured_upload" name="featured_upload" method="post" action="#" enctype="multipart/form-data"> <...
0
votes
1answer
34 views

Edit the post title from the frontend

I have this form that allows-me to change some things of the current post in my frontend: <form id="featured_upload" name="featured_upload" method="post" action="#" enctype="multipart/form-data"&...
0
votes
0answers
270 views

Wordpress User profile with Avatar upload on the front end without plugin?

I want to edit the Wordpress user profile on the front end without using any plugins. I went through SO questions and found a somewhat question and found @Bainternet answer somewhat useful. How to ...
0
votes
0answers
32 views

Remove Unwanted Font Files from Loading into WordPress Frontend

I've built a custom theme for a client and have two random font files being loaded into the frontend of the site. How will I remove these, I'm guessing they are part of Wordpress core? Both files ...
0
votes
1answer
15 views

Login to admin by frontend form?

I'm developing a website by wordpress, customer want I build a custom login page and login by email, not username. And admin page with custom url '/manage/' Below my code for login: $email = $_POST['...
0
votes
1answer
32 views

front end add category to new post

This is my issue, i hope to find the answer here. <div class="form-group"> <label for="genres" class="col-sm-2 control-label">genres</label> <div class="col-sm-10"> ...
0
votes
1answer
27 views

Wordpress website working fine on localhost but not displaying front pages on webhost

The website works perfect on my localhost. I used duplicator plugin to upload it on my web-host. Database connections are established since mywebsite.com/wp-admin works perfect. I can login the ...
0
votes
0answers
41 views

How To Toggle User_Meta in frontend in a form using PHP

I am trying to make a small form, that just has a submit button, and on submission, it should toggle user meta for the WordPress user. The button exists on frontend after content of post, and has a ...
0
votes
0answers
15 views

Frond-end mini-framework for handling wp ajax

The question is non-specific. I have been doing lots of custom triggers to handle ajax and its responses from WP core. Is there perhaps some lightweight framework that could facilitate that? I would ...
1
vote
0answers
31 views

How to set up front end editor to autoembed media for non-logged in users?

I have a series of themes that allow site visitors to contribute content as posts (they enter as drafts) from a front end editor. I have been using a technique of invisibly logging them in as an ...
1
vote
0answers
75 views

Delete User via Frontend

I have made a table list of registered users. It is accessible by admin role only. <table class="table table-striped w-100"> <thead> <tr> <th>Clock ...
0
votes
1answer
38 views

How to allow users to create their own website within my domain? [closed]

I want to create a wedding website builder similar to theknot or withjoy.com. I want to provide the following features - User should be able to choose their own url slug User should have a frontend ...
0
votes
0answers
30 views

Gutenberg: Content Width Frontend

I'm working on the front end of my site however I've ran into an issue where I different content widths as a result of content being not wrapped in a div. <div class="content"> <div ...
0
votes
0answers
7 views

User to be able to upload images x2 and email them

I need to allow a user to upload two image files on the front end on my website. I need these images to them be emailed to an email address I choose. Is this possible?
0
votes
0answers
49 views

Wordpress as backend for SPA - problem of 404 page for custom routing

I'm going to use wordpress as backend rest api and vue.js (it doesn't matter what framework) as frontend part. I have some custom route on frontend side, e.g. "/custom". Actually it works on my ...
0
votes
0answers
87 views

sort posts on front end using url query

I am trying to sort posts on my archive page based off a custom field. The custom field is a number. I have the following in my functions.php file - function wpse139657_orderby(){ if( isset($_GET[...
0
votes
0answers
54 views

wp_editor in Frontend Form Not Working With Autosave JS for Form

I have a Site For Frontend Publishing. As it is obvious i use a form with various fields like tags and categories. I took a autosave code snippet from another answer Stack Exchange. setInterval(...
0
votes
0answers
15 views

Front and Editor styles in one file?

I've got a lot of custom stuff to style inside my current project ( first one made with Gutenberg) and editing two files (that include a lot of media queries) makes the task deeply infuriating. Is ...
0
votes
1answer
84 views

wp_ajax declaration confusing for Front end

I´m a litle confused. I would like to declare a wp ajax function for the front end. I followed the documentation and specifically this page where it´s written : Note 2: Both front-end and back-end ...
0
votes
0answers
13 views

how can i add custom meta box in a custom page

Custom Post Type & Meta Box - Displaying meta box information on front end? and add a text area where the post views can add a text it will be showed in a history below the custom post type <?...
0
votes
0answers
57 views

Custom dropdown list taxonomy not saved

I'm currently modifying a theme, freelanceengine, and I'd to add some customs fields in profile editing page. I succeed in creating the customs fields but my changes are not saved <div id="...
0
votes
1answer
52 views

Change custom post taxonomy values from front-end

I'm developing a ticketing system which already has the custom post type for the tickets with a "status" taxonomy. I have the tickets displayed in a table on the front-end and the status column has ...
3
votes
2answers
226 views

How to link Wordpress heartbeat to ajax form

I have a form that $_POSTs an input value, and user's ID that saves the data to the database: // frontend form <form id="form"> <input type="radio" name="location" id="name1" value="1"&...

1
2 3 4 5
11