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
1answer
27 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
1answer
540 views

Redirect back to origin page after using get_delete_post_link()

I need to implement frontend and backend redirection after delete specific post using get_delete_post_link(). Which hook i can use? Any advice would be appreciated. Something similar to : <?php ...
0
votes
2answers
3k views

Redirect after delete post in Frontend

I use the following link to delete a post in the frontend of wordpress: <a href="<?php echo get_delete_post_link( $post->ID ) ?>">Delete Post</a> This works fine. But after i ...
0
votes
1answer
911 views

User profile in front-end

I want every user to get a profile in the front-end of my website. So I want to visit website.com/user/user-name and view all the information of this user. Is this somehow possible? I would like to ...
0
votes
1answer
930 views

Using Gravity Forms to upload media into library, then attach to post

I have a simple site with two Gravity Forms, both of which allow users to upload media. I'm looking for some simple code that: (a) inserts all uploaded media into the Media Library and not the ...
0
votes
2answers
3k views

Add term for custom taxonomy from front end

I'm having problems trying to create a custom type post with taxonomies using a form at the Front End. I have tried to add several lines of code and use 'tax_input' but I always get errors. The ...
4
votes
5answers
32k views

WordPress AJAX File Upload - FrontEnd

So I have been reading through every WordPress front-end AJAX file upload tutorial I can fine. Nothing is working for me at the moment. The one that makes the most sense to me is this one: http://...
0
votes
0answers
11 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
1answer
703 views

Add/remove tags on frontend programmatically

I generated a link on the frontend toolbar to feature a post (adding the 'featured' tag). It works OK adding or removing, but the problem is showing the post. When removing the tag and then using ...
0
votes
2answers
948 views

How to lock Wordpress front-end with login and password?

I would like to lock whole WordPress site (all pages, all posts, whatever content I will add in the future) with login page same as for example it is made here (clear your cookies) http://facebook.com....
0
votes
1answer
443 views

Restrict Login Subscriber users from accessing frontend

I’m running a private site login users have access to the front-end using [My Private Site plugin][1] However I would like to restrict subscribers users who are login from accessing frontend and keep ...
0
votes
0answers
14 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
1answer
1k views

How to add “alt” attribute for image during upload at WP front-end?

At WP Front-end I create a upload form for users. That form has three input fields (title, tags and upload). So I want to add "Title - Tag - file_name" as alt attribute for images during the file ...
0
votes
0answers
10 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 ...
1
vote
1answer
660 views

How to set up an auto delete post?

I want to create a form in which when a front-end sets a date and on that date the post gets automatically deleted. Is it possible?
0
votes
2answers
1k views

How to make the front-end RTL without changing the admin panel language?

I'm working on a website that needs to be RTL, after reading some articles online I understood that in order for the website to be RTL I need to change the site language to a RTL language. Through ...
0
votes
0answers
17 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 ...
1
vote
1answer
1k views

limit file type and file size using media_handle_upload

I have a front-end form that by using it, users can submit posts from front-end. everything is working great but I have one final problem. In my form I have a file uploader and I'm using ...
0
votes
2answers
1k views

Front end login form not working on live site

I am using the front end form submission. It works on localhost perfectly, but it's not working when my site is live. It shows the "success message", but originally it's not logged in. This is my code:...
0
votes
1answer
125 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
3k views

Redirect after successful registration with fronted registration form

I am trying to redirect users after failed and successful registrations and logins. Everything works fine, except the redirection after a successful registration. Right now, I get redirected to http:/...
0
votes
0answers
14 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'...
0
votes
1answer
31 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 ...
1
vote
1answer
2k views

How to allow registered users to change their user role through frontend?

From time to time i want to give my registered users the chance to upgrade their user role by themselves for free. I tried this by writing a little plugin, but sady i can't get the html form to show ...
1
vote
1answer
33 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
2answers
2k views

Front end post and upload file, image for users without plugin

There are multiple users who have to post their own post on respective post types (like news, reports etc) with feature image upload, extra file (pdf, txt, excel) upload button from the front end ...
5
votes
2answers
889 views

How to upload post thumbnail while wp_insert_post?

I am trying post submit on front end. All works without thumbnail uploading and setting. Here is my html form. <form method="post" action=""> <input type="text" name="title"> <...
0
votes
0answers
33 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
32 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
13 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
11 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
31 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 ...
0
votes
1answer
521 views

Front end ajax user login session issue

I am having an issue where the ajax login form allows me to login, sort of. If I set the redirect to the homepage after login it sends me to the homepage and gives me the admin bar at the top. However ...
1
vote
0answers
24 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
34 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
421 views

User count only for role frontend vendor

i use the following code for count the authors $count_posts = wp_count_posts( 'download' ); echo 'Published eBook (' . $count_posts->publish . ')'; echo ' '; global $wpdb; $...
0
votes
1answer
47 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"> <...
2
votes
2answers
8k views

How can I edit a post from the frontend?

I have learned how to create a post from the frontend but how about editing it ? This is the code I am trying to create a simple frontend form for posting Thank you
0
votes
1answer
22 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
2answers
1k views

Front-End User Profile

I have a front end user profile template I am working on, and everything is working fine except for upload a profile picture. I have a custom user field created and I am trying to use the button file ...
0
votes
1answer
720 views

wp_set_object_terms() not adding new term to custom post and custom taxonomy

I am creating a custom post type with custom taxonomies while submitting front-end form for custom post it is creating a post but it is not creating new taxonomies which I have already set just need ...
0
votes
1answer
550 views

Front End Page Not Loading Header Footer

I followed the directions at http://blog.frontendfactory.com/how-to-create-front-end-page-from-your-wordpress-plugin/ and it works but the header and footer do not load. Here is my page: http://...
0
votes
1answer
451 views

Front end page submission form does not attach custom post type

This side of WordPress is completely new to me, but is also extremely important. I have created a form that allows me to upload a page, with all the parameters I need, however a custom taxonomy is not ...
3
votes
2answers
10k views

Deleting users from front-end with wp_delete_user()

I would like admins to be able to delete users from the frontend with the click of a button. How could I use the wp_delete_users() function to create such a button on the frontend if the user ID is ...
0
votes
1answer
478 views

Multi Photo Upload with Caption on Front End for Custom Post Type

I have a page template that allows users to create posts (for a custom post type) on the front end and upload (multiple) images. Currently it works fine but I would like to enhance it by adding the ...
7
votes
4answers
3k views

is_admin() returns true when using admin-ajax.php from front end script

Had a situation today where I was using admin-ajax.php from a front end script. As I understand it this the wp way to make ajax calls (registering my function with the wp_ajax_nopriv_myfunction hook) ...
1
vote
4answers
6k views

How I upload, save and set a featured image from my frontend?

I have a form on my site. This the user register one missing person. I created a custom post type missing person, custom taxonomies, and custom fields. All this input's save as well in wp. But I ...
0
votes
1answer
612 views

Advanced Custom Fields and Post Meta Fields Relation

I'm using Advanced Custom Fields Pro pluing. Also using a vote pluging and this plugin using post meta box (writing post screen on admin panel) and i can close vote for everyone with close vote date ...
0
votes
0answers
106 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
1answer
574 views

How to include backend buttons css on frontend?

I want to include backend buttons css on frontend in a plugin? This is how its inluded in backend: http://localhost/wp-admin/load-styles.php?c=1&dir=ltr&load=admin-bar,wp-admin,buttons,wp-...

1 2 3 4 5 11