Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [front-end]

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

0
votes
0answers
12 views

Pay for publish post on front

I have the option of adding posts on the front via acf_form. I would like to implement the option of adding a post (for some user roles) after completing the order (preferably a woocommerce), so... ...
0
votes
0answers
10 views

Post type switch on front by post author

It's really nice to write first post here ;) Ok, let's get started. I have 2 custom post types - 'actual' and 'finished'. On 'single-actual' i want to have a link that when author post click then ...
0
votes
1answer
20 views

Front-End Upload media with category

Hello i have a page with a little uploader to upload media in the library, here is my code : <?php $post_id = $post->ID; if ( isset( $_POST['html-...
0
votes
1answer
12 views

AJAX on Front-End Button Click not working - Custom Plugin

I'm trying to make a custom plugin, and something that should be simple is giving me a huge headache. I followed the Wordpress Codex example exactly and have looked at countless similar posts but ...
0
votes
0answers
10 views

Creating front end admin area for users

I am creating a front end custom admin area for registered users. The logic and everything else in in place, so it works. BUT, I have created this using pages with custom page templates. I feel this ...
0
votes
0answers
27 views

Unset plugins on front-end belonging to specific category

I have a function which unset plugins on the front-end. The only extra criteria, in_category ( 'my-cat-name' ), I am not able to achieve. Where and how to add the category so the plugins are only ...
0
votes
1answer
91 views

How To Import CPT With Only Few TEXT ACF Fields From Front End?

I have registered CPT "Contacts" and I have created 3 text fields: name, phone and address. All those fields are set as text fields, and now I want to allow admins to import CPT with those fields from ...
0
votes
1answer
23 views

Get id from metabox dropdown

Im using Reusable Metaboxes (old but still works) and I created a metabox that allows the user to pick a post from a list of custom post types. Right now that works pretty well, I can see all the ...
0
votes
0answers
7 views

Creating search page based database information

I am new to WordPress but not to web development. I have a mySQL database of information of products, and I want a user to be able to enter in a search bar for a product and all products containing ...
0
votes
0answers
18 views

Autosave for frontend editing

I have pages for draft posts, new posts, and all posts. I am using modified version of plugin Frontier Post. How can I have it to auto save the progress on a separate page (revisions page). This ...
0
votes
2answers
18 views

Looking to create an “update theme” functionality for a custom front-end dashboard

I've created a theme that includes a custom dashboard outside of wp-admin. I would like a user who doesn't have access to the wp-admin (but does have access to my custom dashboard) to be able to ...
0
votes
0answers
19 views

Change post visibility from the front end

I'm using Bill Erickson's excellent Display Posts plugin to show a list of posts on a page. I am trying to make a toggle switch based on a radio button or checkbox that allows me to switch a post ...
0
votes
0answers
9 views

Enable plugin function on wordpress frontend

I have a chat app in my wordpress, I want to use that app in my frontend (every pages of the frontend, so a visitor can interact). How do i implement my plugin function to load on every pages of ...
0
votes
1answer
68 views

Fullscreen Video/GIF Intro

How would one go about placing a 3 second Fullscreen Video/GIF Intro upon website start up as a preloader. I've tried coding it in but there's always something conflicting and limits the ...
0
votes
1answer
17 views

How to fix blog article view and share #'s?

This is about public views on the front-end of our blog. All newly published articles view counter & share #'s have stopped updating. So, if someone views the article or shares it on social ...
0
votes
0answers
36 views

How are cookie values encoded?

Title kind of says it all. I can easily generate the md5 hash for the key, but I noticed in my devtools that the value is also encoded somehow. I tried setting it to the plain-text value, but this isn'...
0
votes
1answer
26 views

Should I manually resolve WP Core File security issues or await a subsequent WP release?

Using the Google Developer Tools, I can see that some of WordPress' JavaScript Libraries contain known security vulnerabilities; some a few months old. With this in mind, should I consider ...
0
votes
1answer
61 views

How to handle WordPress Plugin Front-end AJAX Call [duplicate]

I'm developing a custom plugin. The plugin provides a shortcode that outputs some HTML to the front-end, wherever it is called. For the sake of example, this HTML includes a form button and textfield....
0
votes
0answers
23 views

make a POST public and visible for everyone on a PRIVATE WordPress website

I have a privated my wordpress website. so you need to put the username and password to see the pages and posts of the site. I need to make a post called "Legal Notice" as a public post visible by ...
0
votes
0answers
22 views

How to select tags in the frontend

Please help. I want users to be able to add posts from the frontend. It works for me, but I do not know how to do it to choose one of the existing tags. I have this code (used from here, but ...
1
vote
1answer
32 views

Show content from database

This is my first post on Wordpress StackExchange, so please be gentle. I’ve been working with WordPress for some time but more as a front-end developer and not too much back end dev. I have a ...
0
votes
1answer
16 views

How to update the children of a post?

i found nothing about it in the WP reference and Google, so i ask you: I want to update a post by a form - and with it its children. $post = array( 'ID' => $mainid, ...
0
votes
2answers
16 views

Front End Editor

I have a pretty weird issue with my text editor. First, my website is under development (in local) and is made with the Shapely free theme. Secondly, my website is for job hiring purpose (using the WP ...
0
votes
0answers
32 views

Frontend registration form doesn't save data only redirects to wp-login

I have another wordpress dilemma... I've built a frontend registration form, but for some reason whenever a user tries to register it doesn't work, and they get redirected to wp-login.php. The ...
0
votes
0answers
13 views

Create a front end page for all sites in multisite network?

I am having trouble figuring this out. I have a theme which doesn't allow creation of pages, and I want to keep it this way. But at the same time I need to create a custom page which are shown on all ...
0
votes
1answer
13 views

Admin Bar - Customizer Label Change

I'm desperately trying to find out the best way to change the label "Customize" in the admin bar on the front end to "Customize Theme." Have tried just about everything with no luck. Any help would ...
0
votes
1answer
204 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 ...
0
votes
1answer
20 views

Disabling user capability to edit_posts or delete_posts in the front-end

I've created a post edit form in front-end of the site, this form is accessible on the front-end ONLY if the user is logged in. Now, for some reason, upon a certain condition is met, I want to DISABLE ...
0
votes
0answers
19 views

Create posts by any logged in users

I want to allow logged-in any users to create posts. For this purpose I created a form <form> <div class="form-group"> <input type="text" class="form-control" id="...
0
votes
0answers
76 views

Gives users 'password protected' option checkbox on front end post

I'm working on an event based website where users can post events that are then shown on the site. Users use a front-end post form to fill details in, then event is posted on site https://myselekta....
0
votes
1answer
62 views

How to upload PDF from Front-End and post automatically?

I have a medical client and they want to upload and post pdf automatically. So I stumbled upon frontend uploader, which allows users to upload and post an image to a blog post. It does however post ...
0
votes
0answers
71 views

How to use JS inside of the (iframe) wp_editor function?

I'm using the wp_editor function to create a cool frontend editor. The problem is: WP generates an iframe where the editor's content is displayed - however I have a hard time to do anyting with JS ...
0
votes
0answers
22 views

How to do persistent data on Front End?

I´m doing a plugin with a member system. I need to : display notices ( error, warning, info ) for visitors when they fill the form to subscribe. To match with my core project, I need a system with a ...
0
votes
0answers
50 views

How to generate an HTML link automatically from URL in a users' post

I am using the User Submitted Posts plugin to enable users to put posts on my Blog. I would like to take the URL from the post and convert it into an HTML link with (for example) iframe. Any ideas how ...
0
votes
0answers
51 views

Enabling users to delete post from frontend

I was trying this code to delete code from frontend but it is giving me syntax error T_String then i tried remove the confirm string it did delete the post but then redirected me to the same post ...
-3
votes
1answer
37 views

How to improve wordpress site creation process to increase productivity.

more info: we are all here working and loving WordPress but at the end of the day we need to make money if we can finish same work in less time we can be more competitive and take more projects in ...
0
votes
0answers
8 views

Post from front-end user is sanitized

I don't want Wordpress to sanitize the user's post from front-end. If I logged in as super admin, wordpress don't sanitize post_content. But, If I logged in as a normal user, wordpress sanitize ...
0
votes
1answer
149 views

HELP! Frontend User Profile Edit Won't Update Email

I've read forum after forum and I feel like my code is perfect. But it still won't update the user email. /* Get user info. */ global $current_user, $wp_roles; //get_currentuserinfo(); //...
0
votes
0answers
95 views

Frontend Media Upload throws TypeError mediaelementplayer

I am trying to add a media upload button on frontend. Here is my code that enqueues media and my script file function pc_scripts() { wp_enqueue_media(); wp_enqueue_script( 'pc_custom', ...
0
votes
0answers
116 views

CSV export from Frontend [duplicate]

i have an custom SQL quarry i need to allow users to DOWNLOAD CSV file from this quarry from their fronted panel SELECT ATT_fname, ATT_lname, ATT_email, ATT_address, ATT_phone FROM ...
0
votes
0answers
32 views

Adding Editing (backend) metaboxes for a given post type to the frontend

Apologies that this question isn't coming with a pre-existing code attempt by yours truly; this need is a bit above my current skill level (but I'm working very hard to improve at it). I'd like to ...
0
votes
1answer
500 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 ...
1
vote
1answer
158 views

Disable or Enable Comments on Front end [closed]

How can I enable or disable comments on front end by post author? Back end is closed for my authors and some authors sometimes don't want to enable comments. Maybe we can add a field (check box) that ...
0
votes
1answer
111 views

Wordpress Error establishing a database connection For Admin login only

I am having this strange Error thing happening I can load the wp frontend fine but the wp/wp-login.php gives : Error establishing a database connection Does the wp-config.php is for both frontend and ...
0
votes
0answers
44 views

front end post and uploads for custom post type

I am working on a front end post form for a custom post type that allows users to upload images. if (isset( $_POST['save-draft'])) { $post = array( 'ID' => ...
0
votes
0answers
52 views

Database Table for customer user

I'm developing a custom login system for wordpress. In front-end, the customers, has the possibility to register, etc...But I'm wondering if is possible to store customer information in other table ...
0
votes
1answer
505 views

Is it secure to use admin-ajax.php in front?

I would like to know if it is secure to use admin-ajax.php for your ajax requests on the front.
0
votes
1answer
44 views

how let users select categories for posts in frontend?

i've added a custom taxonomy to categorized post in colors other than their main category and i want to let users to categorized posts in frontend and i have no idea how to do that... is there anyway ...
0
votes
1answer
306 views

How do I display a custom field in an existing form on the front end?

I just have one custom field (from metabox.io) that I need added to the front end of an existing form. Can someone just clarify the steps. I tried following this tutorial: https://voodoopress.com/add-...
1
vote
1answer
86 views

upload featured image in custom post type from frontend

I am trying to upload featured image from frontend and my id is also inserted in post_meta but image is not uploaded in media library https://www.screencast.com/t/Uakjtxi9ojv Here is my code. ...