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
14 views

Custom page with shortcode function

Is there a way I can show just the name and profile picture of logged in user on a page in frontend with shortcode. I tried checking through some solutions but does not provide what I need.
1
vote
0answers
22 views

Short code to modify the user profile from the frontend

I am trying to pass a template that I found here to a short code to display on a page on the frontend. Now now I have the following: // profile action hook - catches form submission and acts ...
0
votes
0answers
24 views

Using the admin Featured Image's modal in the front end

I am trying to get the new upload frame of the featured image used in the admin side, but the one used in the front is different. I will show you some screenshots: In the admin section when I click ...
0
votes
0answers
17 views

Add Media Library for Frontend (no Plugin)

I would like to use the entire wordpress media library for the frontend. I want any user that views my homepage to be able to upload, manage and delete the files in the media library. I will add a ...
0
votes
0answers
22 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 ...
0
votes
0answers
6 views

How to upload images in specified size

I got the frontend upload to work, but the image to be uploaded will always be used in the size of 150x150px. I would like for the image to be cut to that size before it got uploaded so my server's HD ...
0
votes
1answer
10 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( ...
0
votes
0answers
14 views

WP User Frontend Post Form glitch

WP User Frontend Post Form somehow shows a completely messed up UI of a form. It is supposed to look like this but instead - when I visit the page - this is shown What is the issue here and how do i ...
0
votes
0answers
9 views

custom style frontend editor

Stuck with this for weeks. I cannot add a custom button with a custom style to the frontend tinymce editor. If I register a new custom dropdown in the function.php it works great in the backend editor....
1
vote
0answers
16 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. ...
1
vote
0answers
7 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.
0
votes
0answers
13 views

Images wont display after uploading from frontend?

When i upload an image from frontend using jetengine forms to my custome post type its doesnt upload well (like what shown n the img).So is it a problem from jetengine or is their is something i dont ...
0
votes
0answers
15 views

Showing logged in user data on the front end

I see there are quite a few answers surrounding this topic, but I can't seem to understand any of them, I am a complete noob when it comes to databases etc. What kind of code do I need if I want to ...
0
votes
0answers
14 views

Adding custom field to an existing frontend form

I am struggling on this for few days already. Hope anyone can assist me, thanks a lot! The theme already has a frontend form, but I wanna add a custom field on it, which is a expiry date of the post. ...
0
votes
0answers
42 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: ...
1
vote
1answer
33 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 ...
0
votes
0answers
46 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 ...
0
votes
0answers
38 views

Front-end user submit Custom Post Type with AJAX and ACF Fields

I am in need of some advice/nudging in the right direction to achieve the following: Logged in users will be able to either create new or edit existing posts from a custom post type. They will be able ...
0
votes
0answers
144 views

how make background-color transparent in elementor?

how make transparent background-color in elementor. Where is the option of opacity to make background-color transparent. Note- I don't want to make background-image transparent.
1
vote
0answers
7 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 ...
2
votes
0answers
331 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. ...
0
votes
0answers
180 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 ...
0
votes
1answer
32 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. ...
0
votes
0answers
8 views

When admin select the value from the dropdown list , the new information is added to particular selected item and display on that page?

e.g if admin add information and select Bahria town from dropdown list then the information is added on the baheria town page .
0
votes
1answer
24 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" ...
0
votes
0answers
148 views

ACF: How to programmatically Update Flexible Content Field?

I want to be able to create sub fields inside a flexible content field. My setting is this one: menu_item_field is a flexible content field that contains: 1.1 menu_item_parent (text) 1.2 ...
0
votes
0answers
20 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?
0
votes
0answers
10 views

Ajax sends me back my home page as a response

Good morning all, So, I try to do a request with ajax and everything is going fine up to this point: In the frontend, Ajax sends me my home page as a response when I am logged in as a subscriber, i.e. ...
0
votes
0answers
13 views

Display post voting results on homepage blogroll

I am stuck. I am trying to us this plugin: https://github.com/ErnieAtLYD/MoodThingy-WP-Plug-In As a post voting plugin. There's only 2 options. Now, the results are being stored in the database just ...
1
vote
0answers
26 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 ...
0
votes
1answer
14 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 ...
0
votes
0answers
35 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 ...
0
votes
1answer
39 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 ...
0
votes
0answers
174 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 ...
0
votes
0answers
38 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 ...
1
vote
0answers
13 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 ...
0
votes
1answer
41 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....
1
vote
2answers
1k 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
21 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 = $...
1
vote
0answers
25 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 ...
1
vote
0answers
25 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
20 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
783 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
2answers
223 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
65 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 ...
1
vote
1answer
327 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
292 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
450 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
363 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://...
1
vote
0answers
431 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 ...

1
2 3 4 5
11