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

learn more… | top users | synonyms (1)

0
votes
1answer
432 views

Best way to use ajax front-end?

The question is about which way is the best / easiest way to make a theme with ajax, using admin-ajax.php or normally. I ask because I see that complicates using admin-ajax.php for everything and use ...
0
votes
2answers
546 views

Add script into front from my plugin

I have a WordPress plugin, and I must load scripts from my plugin to the front of the site. class My_Plugin { function __construct() { add_action('admin_menu', array(&$this, ...
0
votes
2answers
86 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
5k views

ajax call in wordpress front end

In my plugin i'm using two ajax calls in back end. that worked well. but to provide the same functionality in front end i loaded the copy of these two functions with another names and my code is: in ...
0
votes
1answer
412 views

how to make nsfw post with thumbanil

iam making a comic site like 9gag the front end upload page contains title upload image tags NSFW [checkbox] if every thing is normal the image become featured image of the post , i want the NSFW ...
0
votes
2answers
3k views

Saving frontend form data in wordpress

I have front-end user form like, Title Image Upload Drop Down Category Description Tag Now when a user fills the form and hits the publish button from the front-end..... at the back-end a post is ...
0
votes
2answers
2k views

How to have content scroll over background

I'm attempting to modify the latest version of the mystique theme, and would like to have it so when I select a background, the page will lock that background into page, but have the content scroll ...
0
votes
2answers
963 views

Are there any action like 'init_frontend'

I've found init and init_admin. Are there any action that executes just in the frontend? Thanks.
0
votes
2answers
2k views

Save Theme Options (options.php) From The Frontend

I try to save an option from the frontend but i can't find yet how to do it. So, the idea is to give the blog owner a simple form with a dropdown that can select a different stylesheet.css. I have ...
0
votes
2answers
40 views

display widget checkbox selection on frontend

I create a widget for a custom post type that will display a list of post in the widget area. it works fine, i can select multiple posts and save the widget but i can not get it to display on the ...
0
votes
1answer
38 views

RTL/LTR frontend switcher

I have a theme that supports RTL. When Appearance->Theme settings->Right-to-Left (RTL) text orientation is enabled theme switches correctly. But I want to add to the main menu 2 items to switch ...
0
votes
1answer
185 views

Using WordPress only for the backend, and using AngularJS as a frontend

I'm developing a web application for a friend who needs an online portfolio. As a learning experience, I'm trying to do the front-end with AngularJS and using Wordpress as a backend with the official ...
0
votes
1answer
36 views

Enqueue script: link not working in page source

I am using the Front-End Editor plugin of Scribu at my website. I want to enqueue it, because I want to use it alongside my caching plugin, but that one only works when JS files are enqueued. The ...
0
votes
1answer
111 views

Developing a secure front end posting form

I want to add a front end posting functionality to one of my Wordpress sites. For more control and for more understanding of how this works (I am not a professional programmer) I choosed to use as a ...
0
votes
1answer
136 views

How do I apply/target css to a specific user role?

How would I apply some front end css to only a specific user role/s?
0
votes
1answer
64 views

is_home and is_frontpage always true

I'm trying to limit the number of posts on the homepage but is_home() and is_frontpage() always seem to return true (even when I'm browsing /page/2/, /page/3/ and so on). I've basically duplicated ...
0
votes
1answer
444 views

There's an image named g.gif somewhere in my WordPress site

I am looking for this pixel which appears full width in my mobile site, so I want to remove it. Image URL: ...
0
votes
1answer
72 views

Front-end CSS Library for plugin [closed]

I'm looking for a CSS library that can style elements I display on the client-side (front-end) of a wordpress website. The CSS library needs to be able to work with most of the wordpress themes, which ...
0
votes
1answer
6k 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
1answer
266 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
2answers
312 views

the_time() returning wrong date/time (way in the future)

Within a loop, that otherwise works fine, the_time() is giving me a date and time about 25 days and a few hours ahead of the actual date.For instance, if I post today, it lists it as "April 30th, ...
0
votes
1answer
551 views

Get all media files for current author

I'm trying to create a list on the frontend of my site of all media items that the current user has uploaded. It seems like the way to do this would be to loop through and compare the ID of the ...
0
votes
1answer
1k views

Add a default meta_value to new posts

I have a page template that allows users to create and update posts from the front end. I also am using 2 plugins, 1 that allows the user to rate posts from 1-5 stars and another that allows them to ...
0
votes
2answers
2k views

Register new user in the frontend

I hava a big form and when a user fill it I need to create a new user in Wordpress from there. Its posible to create and user from the frontend and add some custom information? Thanks
0
votes
1answer
1k views

Uploading PDF files from the front-end

I am working on a Wordpress site that has a custom front-end form for submitting posts. I need to add a field in the form to allow users upload a single PDF file along with the post. How can I achieve ...
0
votes
1answer
297 views

Lock post editing to one user at a time - wp_check_post_lock

I am creating a website where user have to be logged in to give a price bid on a product. Only one bid can be given on the product. Therefore, I only want one user at a time to be able to give a bid. ...
0
votes
2answers
1k views

Front-end image upload from TinyME [closed]

I'm trying to edit the Q&A Plugin (which for those of you that don't know it is a StackExchange-style plugin with Custom Post Types of Questions and Answers) to incorporate image uploads. It ...
0
votes
1answer
766 views

Front end post submission form with duplicate type fields

Here is the simple front end post submission form code <?php $postTitle = $_POST['post_title']; $post = $_POST['post']; $submit = $_POST['submit']; if(isset($submit)){ global $user_ID; ...
0
votes
2answers
498 views

Not redirecting upon front-end post submission

I have been trying this code to submit front-end post: http://pastebin.com/B8LGhsGA It is not redirecting upon clicking the submit button the form works fine but its not redirecting. When the post is ...
0
votes
1answer
830 views

Is it a bad practice to use switch_to_blog in the frontend?

From Wordpress Codex (although related to the same function in WPMU and not WP3.0+): http://codex.wordpress.org/WPMU_Functions/switch_to_blog it says: This switch is to be used for internal and ...
0
votes
1answer
40 views

Creating a blog on my companies new website using Wordpress but I have sidebar issues

As said in the title, I am creating a blog on my companies new website using Wordpress but I have sidebar issues. The website is only in production phase at the moment. The Link is so you can see ...
0
votes
2answers
2k views

Wordpress Backend Fine, All Themes Return a Blank Page?

I have this issue, where I can't access the frontend without a blank page anymore. It drives me crazy. The backend seems to be up just fine, but the frontend is white. When trying to chose another ...
0
votes
1answer
21 views

Make “default” wordpress pages & features unaccessible

I am trying to create specific password-protected mini-sites (single wordpress pages) for specific users or specific passwords to be precise. For example someone clicks the url domain.com/url1 and if ...
0
votes
2answers
71 views

Get Post ID after front end post submission

I can't get the published post ID, i'm using a front end custom form. When the submit button is clicked site is re directed to a different page. Now, i can't get the just published post ID using: ...
0
votes
1answer
227 views

Upload and attach to a post multiple image files [closed]

In a front end form I have a 'multiple' input field for uploading and attaching images to a post and a processing script (from here). I expect that will be uploaded and attached all files that I have ...
0
votes
1answer
36 views

Display custom meta on page that has been check in custom post type

I have created a custom post type (cpt) and within each post type is a custom meta field. This custom meta field displays all the pages that can 'checked'. Code to generate the custom meta box: ...
0
votes
1answer
82 views

Static page not working

First, context: I am not developing a theme, I am not mucking around with PHP. All I wanted to do was throw up a quick temporary WordPress site in a few minutes, paste my content in, and call it "good ...
0
votes
1answer
85 views

How to display the user's comment status on the front end

How can I display the current status of a user's comment/s (on the front end), that is, "approved" or "pending"
0
votes
1answer
149 views

Reason action hook won't work with update_post_meta from frontend form? Alternative?

The code below works when I am inserting a post/using add_post_meta when submitting a form. The page refresh is flawless (see How can I fix a slow redirect after form submit from frontend (no ...
0
votes
1answer
375 views

Showing user profile data on front-end

I'm making a profile-page so my members can update they're details trough the front-end. The problem is that the select-box named "Province" won't show the correct data when the page loads. How can i ...
0
votes
1answer
1k views

Wordpress Frontend Check If Current User Is Administrator

I am trying to check if current user that accessing a page if administrator using current_user_can(), but it is not working and returning this message instead: Fatal error: Call to undefined function ...
0
votes
1answer
653 views

WordPress Frontend Post Form (Bootstrap Modal) Not Creating Post

I have a form in a separate PHP file in the theme directory and it's being included in the sidebar of the main page template. The form is inside a Boostrap modal. I've been trying to use this code to ...
0
votes
1answer
589 views

Check for uploaded file type wordpress way for multiple uploads

I have a form in the frontend that lets the user upload multiple images and other file types as needed. To process multiple files array I have followed this answer and here is the relevant. PHP ...
0
votes
1answer
547 views

Custom Taxonomy Not Saving in Front End Post

I am trying to create a front end posting form that will allow users to create a post when schools are closed. I have 4 custom taxonomies closed_schools, study_open, safe_arrival, hour_delay. each has ...
0
votes
1answer
28 views

Can i have more than one form for front end posting in one template [closed]

I'm building a front end post form for car dealing. I have the "if statement validation" at the begining of my template, before get_header() function, after that i have the form. Can i have two or ...
0
votes
2answers
194 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
1answer
218 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
3answers
1k 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
1k 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
554 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( ...