Tagged Questions

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

learn more… | top users | synonyms (1)

1
vote
2answers
179 views

wp_update_post via ajax from frontend

Setting: three open Tabs in browser: Tab 1: Admin edit post Tab 2: Frontend view of that post in "editing mode" Tab 3: Frontend view in "non-editing" mode (default request) I edit the post on Tab ...
0
votes
0answers
111 views

add_post_meta to repeatable metabox from frontend

I'm creating new post from wordpress frontnend. I have managed to create post using wp_insert_post & added single metabox values using add_post_meta successfully. but I'm unable to set values of ...
0
votes
1answer
53 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: ...
0
votes
2answers
418 views

Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap

The problem (Excess White Space Above Admin Bar on Frontend Using Twitter Bootstrap): While logged in and viewing the frontend -- If you shrink your browser down, there is an excess amount of white ...
0
votes
0answers
181 views

Create nonce in frontend page to edit profile

I am trying to create a frontend edit profile form that mimics the wp-admin backend edit profile. I created the form as HTML directly in a WordPress page (I'm a PHP/WordPress beginner, so I don't know ...
0
votes
1answer
3k views

upload featured image from front end using wordpress add media button

I want to submit custom post from frontend. i have made form to make this happened. But i want to upload featured image form add media button of wordpress. Code is <?php /* Template Name: post ...
0
votes
0answers
83 views

update_post_meta frontend

Ok I have searched and searched the internet to find an answer to no avail. Here is my issue. I have a form that is pre-populated with metadata fields. I want to have two submit buttons one will ...
1
vote
1answer
206 views

get_delete_post_link redirect

I am using this to allow users to delete their own posts on the front end of my site: <a onclick="return confirm('Move this post to the trash? You can restore it later.');" href="<?php echo ...
0
votes
0answers
67 views

How to set/force the size of the image/attachment uploaded by frontend form?

I have a front end form to let users upload images to my website and i set the post attachment image like this: // find the most recent attachment for the given post $attachments = get_posts( ...
0
votes
0answers
1k views

Connect LDAP with Wordpress-Login

I have a wordpress-page where i offer webapps, mostly for free. Now, I want to connect this page with my LDAP-directoy from my first page. I tried several Plug-Ins but they did not work, yet. I am a ...
0
votes
0answers
423 views

Edit User Profile From Front End

I have taken reference from this link. I have used Plugin cimy user extra fields for extra users' field. I have taken few extra fields such as picture upload and file upload. Now I want to edit ...
0
votes
1answer
118 views

How Can I Limit Users to Post Creation For My Frontend Theme?

I have exactly a same site like stachexchange. In my theme all users can ask questions. But I want to limit users to post for preventing spam. Example: 1 post per hour. Default new registration role ...
0
votes
1answer
111 views

upload file with front-end submission and forward the data in an email

I have an email set up using wp_mail that forwards my front-end submission data as well as posting it to the dashboard. The part that I am having trouble with is forwarding the attachment file with ...
0
votes
0answers
96 views

Working on fixing wp-front-end-editor, encountering undefined index

Scribu's Frond-End Editor plugin is brilliant, but throws some Strict errors in debug mode. Since I'm using the plugin on a project, I figured I'd fix the errors. (You can see my changes from the ...
1
vote
1answer
153 views

Help with AJAX front end comment moderation

I am implementing a front end AJAX comment moderation system for a site I manage but I am having a hard time getting it to work. Right now clicking on the link that approves the comment runs the ...
1
vote
0answers
83 views

Frontend image uploading from frontend cant handle hebrew names

i'm using the insert_attachment code in my functions.php : function insert_attachment($file_handler,$post_id,$setthumb='false') { // check to make sure its a successful upload if ...
0
votes
0answers
416 views

Add Action Hook function to WP-User-Frontend in a custom post field

I'm using WP-User-Frontend plugin on my wordpress site to allow users to submit posts from the frontend. I only allow users to submit urls. So I created a new form in WP-User-Frontend and gave it 2 ...
0
votes
0answers
164 views

Add insert/edit link functionality to front end tinymce

I would like to know how to insert/edit link functionality at front end tinymce added by plugin. Before that I thought I can use WordPress's tinymce by wp_editor() but, wp_editor is not working on ...
0
votes
0answers
16 views

How to use ajax_url in front end when using with theme? [duplicate]

I'm trying to use ajax function to my theme. I think i can't just put the javascript code in my functions.php, i have to register it properly and enqueue it. So i store the javascript file with .js ...
-3
votes
1answer
302 views

How to use WordPress 3.8 back-end CSS in front-end?

How to use WordPress 3.8 back-end CSS in front-end? I want to use the back-end button CSS, button icons CSS etc. onto the front-end side. Is there any way, I can just call the CSS class in front-end ...
0
votes
2answers
112 views

set post author depending on condition via frontend post submit

I allow users to post from frontend. There are three kinds of users. Myself as admin, a junior ( given a role of an author) and anyone from public as non-logged-in user. Currently if any non-logged-in ...
0
votes
0answers
23 views

Slideshow of posts

I am trying to find a way to achieve the following: -- I have a section in my home page that lists all posts, since i am using bootstrap, i put every post in a 3 col grid, so 4 posts for each line. ...
0
votes
0answers
11 views

Lock my blog only for me [duplicate]

I'm creating a blog to write my daily notes. Actually it's a Diary. So, I am the only one who writes it and only one who reads it. I don't need anyone else to see it. So, I need to lock my entire blog ...
0
votes
1answer
157 views

term/tag not being saved for custom post type

I have been using a chunk of code as a plugin that was suggested in the answer to this question. Please check the code provided below instead of the one in the question, as I may have modified it a ...
0
votes
0answers
59 views

Add a popup message on frontend?

I want to show a box or a widget with HTML content at the bottom of a page to show the reader a message s/he can dismiss. Here is an example: Can one of the built-in JavaScript libraries be used ...
0
votes
1answer
61 views

Front end Submit not posting to Custom Post type

I have a custom script that allows to add per form submit to add contacts to a custom post type. But for some reason it always adds the data to the posts instead into the post type. i have tried ...
0
votes
1answer
94 views

Wp_editor doesn't send the required data

The wp_editor function is working fine concerning the displaying of editor and sending of information, except that the information is never sent as it is. In a template file responsible of updating ...
0
votes
0answers
109 views

Function working in single.php but not working in custom template file

I defined in my functions.php the following code: function fix_footnotes($content){ return preg_replace('/href\s*=\s*"[^"]+(#[^"]+)"/','href="$1"', $content); } When I call this ...
0
votes
0answers
809 views

Using Advanced Custom Fields plugin's file type “File” to upload from front end

here is my current situation: I already have a custom add/edit form with unique features, so I won't be able to use "ACF's front end form" that will create a form of it's own. For standard text ...
1
vote
0answers
155 views

Frontend Image Upload

I have the following code used at the top of my front end user profile page, everything works and displays fine except for the following problem .... If I upload an image and submit the form usermeta ...
0
votes
2answers
1k views

wp_editor doesn't work in front end area

I am developing a theme where I would like to have a front-end area, but when I try to include the wp_editor() in the page template I am getting this result: P.S. The wordpress editor works fine ...
1
vote
1answer
771 views

set a chosen image-file-input as a featured image from wp frontend

SCENARIO : I allow to create posts from front-end. The form also has four image upload fields. I use the code pasted below for image attachments and setting the post thumbnail. //insert attachments ...
0
votes
2answers
470 views

Validating custom fields before post save

After much unsuccessful searching, I'm hoping someone here can help me out. I am using Advanced Customs Fields (I assume most people are familiar) to create a post from the front end. I want to ...
0
votes
1answer
390 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 ...
0
votes
1answer
781 views

How to insert multiple checkbox values into post as custom fields from frontend

I need to use a form in the front-end that allows people to post. I have tried to keep the minimum code in order to focus only on the issue (mentioned below) at hand. EXAMPLE FORM: <form ...
0
votes
2answers
283 views

wp_editor removes HTML and inline styles

I use the wp_editor function to display an editor in front-end. The problem is that this editor doesnt behave like the editor in backend based on the settings I give as input: $settings = array( ...
0
votes
1answer
98 views

select box not checked and is not saved

I needed to assign categories to post from frontend and found this fantastic thread here on this site, which generates a form at frontend with selectboxes. The plugin automatically appends the form ...
0
votes
1answer
430 views

SImple Example To Update User Info From Front End [duplicate]

I want to give user ability to update their nickname from front end using wp_update_user and shortcode. The code below is working. add_shortcode('user-profile', 'get_current_user_prof'); ...
0
votes
1answer
23 views

Missing items on page

I'm missing items on my web page and I think it is due to some jQuery problems. But I'm not sure and I am unable to find the bug. On this site, on the upper-right corner there is a shopping bag ...
0
votes
0answers
118 views

adding option-tree list items metaboxes from front end

i am using option-tree to add metaboxes to a custom post type and i want to update the list-item metabox from the front end. The list item consists of Name, state, and coountry as repeatable list ...
0
votes
1answer
146 views

is_admin() conditional statement

I built front-end log in like this. <?php if( is_user_logged_in() ) { ?> <?php /* Template Name: front page */ get_header(); global $user_identity; $redirect = ...
0
votes
1answer
174 views

Frontend tagging for both default and custom post type in wordpress

Wordpress backend (post-editor-panel) offers such an excellent tagging tool wherein we can choose from already existing tags. Is it possible to bring this functionality to the frontend without fancy ...
3
votes
1answer
38 views

Listing registered scripts

Back story : We have a number of wordpress web sites experiencing issues when viewed on some IE8 browsers. The errors include the page loading but not being displayed (either a blank screen is ...
0
votes
0answers
125 views

Let admin users edit member profiles from front end

I'm using WP User Frontend Pro, but the pro version lacks the feature of letting admins edit registered users profiles from front end. I'm building a web app using WordPress, and the administrator ...
0
votes
0answers
68 views

Limit Form Access and Require Some Fields

I have gotten a "post from frontend" php code example, and I have tested that it works for my site. But I found that it can't define only logged in user to submit post. Also the code can't display ...
0
votes
2answers
72 views

How to disable accessing the custom post types from frontend via a link?

I am registering a custom post type like: /* POST TYPE: SECRET CARDS */ function register_post_type_secret_cards() { $args = array( 'labels' => array( ...
0
votes
2answers
101 views

printf, translation and the_author_posts_link()

For some reason the following code is not displaying correctly on the frontend of my site - <?php printf( esc_attr__( 'About %s', 'textdomain' ), the_author_posts_link() ); ?> Instead of ...
0
votes
1answer
125 views

Front end update_post_meta Help

I followed the help provided in this question but cannot get the form save the data. I tried using 'save_post' action hook to try and save the post like we do for admin side. Any help would be highly ...
0
votes
1answer
267 views

User Attach Images To Post From Front End

Making a site that deals with custom parts. Id like to make it so when i make a post about a part i have a image upload button on that post in the frontend that lets users upload their custom pics to ...
1
vote
3answers
3k views

Add new media uploader at frontend for wp 3.5+

I create a form for user to submit content from the frontend. The only problem is I don't know how to handler the image upload. So, I want to know how to use the WP media uploader in the frontend. ...