The server-side programming language that the WordPress core, plugins and themes are written in.

learn more… | top users | synonyms (1)

2
votes
0answers
100 views

Namespacing WordPress project according to FIG standards

I am trying to wrap my head around the namespaces, autoloaders and FIG standards and most importantly how to achieve their integration to WordPress as close as possible. Here is my file structure, ...
2
votes
0answers
199 views

Display a query with multiple post types and same relationship on a single page

I am creating a client portal were my clients can maintain their projects and leave feedback in Wordpress. I have two custom post types called "Clients" and "Projects" and they each pull information ...
2
votes
0answers
245 views

Inconsistent temporary 404s on whole install | PHP error with post-template.php

I'm deeply confused by this one: I have a WordPress install on a Media Temple GS [one of many which work fine and are configured almost exactly the same] which is occasionally giving me 404s sitewide. ...
2
votes
0answers
340 views

Adding dropdowns to the tinyMCE editor

I'm new to php and wordpress but I've managed to figure out both pretty easily thanks to the community, forums and blogs. I'm close to figuring out what i want to do here, but wasted hours without ...
1
vote
0answers
16 views

Looking for a secure way of storing/accessing user form entry preserving newlines?

I'm allowing users to enter information through a textarea on my site. I'm aware that there is a security risk whenever a user can enter information into a site. I want to be able to preserve ...
1
vote
0answers
17 views

Change tinyMCE editor to allow marked content when pasting from Word

I'm a big supporter of how WordPress handles pasted text from Word, however for my client I need to change this. My client is marking text within Word to use as a reminder (background color). Does ...
1
vote
0answers
21 views

Adding Field to Profile “Name”

I am trying to add an extra field or two underneath the "Name" or "About" section in the Wordpress user profile. So far I have only been able to accomplish this by: //Begin ...
1
vote
0answers
84 views

How to resize image on client-side before upload?

I've been using Plupload to resize images on the client side before uploading them to the server. I've implemented a front-end form which lets the user select a file from their computer and submit it. ...
1
vote
0answers
290 views

Woocommerce displaying product categories and products on custom theme

Am trying to create custom Woocommerce supporting theme in Wordpress. What am facing is regarding the displaying of Product Categories when accessing the main category and 1st level of categories. ...
1
vote
0answers
26 views

wordpress archive a user

Please note this question was originally created in stack overflow. I have moved it here due to recommendation. I apologize if this can be answered elsewhere. I tried searching around with no ...
1
vote
0answers
122 views

Contact form won't submit

I posted this on the Stackoverflow site and haven't received much assistance with the issue. I hope that, by reposting it on here, someone could please offer me any assistance. I am creating a theme ...
1
vote
0answers
15 views

edit search.php to include subdomain posts

Is there a way for us to edit the search.php to include the subdomains with its search results? The only "condition" the code has is... ...and I have really nothing more to go by. =/ And oh, I ...
1
vote
0answers
42 views

How do I get around “Sorry, this file type is not permitted for security reasons”?

I was wondering how I could allow .tiff files to be uploaded in my wordpress site. I get the message "Sorry this file type is not permitted for security reasons". This question has been asked in ...
1
vote
0answers
168 views

Should I use spl_autoload_register() in my plugin?

When I use spl_autoload_register in my plugin, I get: Fatal error: Uncaught exception 'LogicException' with message 'Class wp_atom_server could not be loaded' ...
1
vote
0answers
94 views

Display image from an external rss feed on wordpress without plugins

I am trying to add an external RSS Feed to my wordpress theme. Displaying the feed content and title was a success. But I don't see any option to display the image from the external feed. I tried ...
1
vote
0answers
681 views

How to set a custom path, for ajax image upload folder in admin?

I am coding my first Wordpress plugin that handles some data for a custom (shop-like) post type. It also has an image uploader within a metabox, where you simply drag in your images and it ...
1
vote
0answers
15 views

How to migrate the posts from an old custom legacy blog to a new WordPress website?

I have to migrate the posts of a very old custom legacy blog made in ASP (the posts are stored in a MySql table) into a new WordPress blog. So I need your help to find the smartest solution to do it, ...
1
vote
0answers
251 views

wp-comments-post.php file returns a blank page

When i post a reply to my blog, it's return a blank page to me. It seems that happens because of this code in wp-comments-post.php if ( 'POST' != $_SERVER['REQUEST_METHOD'] ) { header('Allow: ...
1
vote
0answers
59 views

conditional logic for front-end custom field edits

I'm just starting to learn php/js and would like some recommendations on the best way to setup my logic: Goal- Display the value in a custom metafield in the custom post type. If the user is the ...
1
vote
0answers
114 views

Using color picker in plugin, does input attribute order matter?

I'm trying to use the WP color picker in a plugin admin menu and it doesn't seem to be doing anything at all. I'm following the directions here: ...
1
vote
0answers
54 views

Configuring a meta query with multiple post types that have the same relationship on a single page

I am creating a client portal were my clients can maintain their projects and leave feedback. I have two custom post types called "Clients" and "Projects" and they each pull information from one ...
1
vote
0answers
170 views

add_theme_page to add_menu_page theme options convert

<?php /** * ILC Tabbed Settings Page */ add_action( 'init', 'ilc_admin_init' ); add_action( 'admin_menu', 'ilc_settings_page_init' ); function ilc_admin_init() { $settings = ...
1
vote
0answers
80 views

Add .htm extention to a custom taxonomy

I need to add '.htm' to all my urls on a new site - client requires that, as I am converting a old static site into WP. (I use Remove Taxonomy Base Slug to hide the slug of my custom taxonomy "topic" ...
1
vote
0answers
17 views

theme_root returning a truncated URI

I'm unable to access the theme editor via the control panel, receiving 'Sorry can't edit files with .. in the name....' and after trying to trace back the cause, I've found that the theme_root is ...
1
vote
0answers
54 views

Wordpress Custom field Colors

I came across this code and would like to use it in my project. It works fine, but the problem is, I need to change those colors in the array to instead pick transparent images from url since I am ...
1
vote
0answers
67 views

Search Query: how to construct a search string from two select elements?

Im trying to create a wordpress search widget. The final search string Im trying to submit is made up of two keywords, one each from a select element. I'd like the final search query to be ...
1
vote
0answers
17 views

Configure Php server with ISAP

i have hosted my wordpress site in IIS server and its running CGI/FastCGI but I found that CGI/FastCGI is slower than the ISAP.I am working with the performance issue in the site and the site has been ...
1
vote
0answers
157 views

How to track a users progress through pages by inserting data into Wordpress Database?

My website users can learn British Sign Language through Video Tuts, Quizzes and games etc. I would like to track the users progress through the pages of the course and add that data to a Wordpress ...
1
vote
0answers
127 views

Need help setting default setting value for radio button in theme customizer

I need help figuring out how the radio button saves it's value in the theme settings. In my theme I added Radio buttons in the theme customizer. So far they are working great. Although I have one ...
1
vote
0answers
79 views

Login to wordpress by clicking a link and specifying usernaname and password in url

I'm running a php application on an ubuntu server that's completely independent of my wordpress site. I'm using an iFrame of the server inside the wordpress site, but I need to login to Wordpress with ...
1
vote
0answers
89 views

Irregular TTFB and server wait time response

im having a hard time figuring this out. I've created a custom wordpress theme from scratch, following the best practices that I could. The site works great most of the time, with a load time that ...
1
vote
0answers
436 views

$wpdb->insert() does not Insert record in a table

I'm trying to understand and get hold of the $wpdb global object but can't seem to make it work. Basically, I'm trying to insert a single record into a custom table in wordpress DB. Instead of ...
1
vote
0answers
9 views

Use Same Settings for All Inserted Media?

When you insert a bunch of images into a Wordpress post via "Add Media," you can hit Shift or Ctrl and select several of them at the same time. But is there a way to be able to set the same ...
1
vote
0answers
115 views

How I can internationalize variables within the function _e () __ (), etc?

I have intro function variables and i wish internationalize dynamic. I have the follow code: _e($widget['description'], MyStaticClass::$i18n_prefix); When I run the poedit this ...
1
vote
0answers
165 views

Fancybox type popup window that's not an iframe

I'm a bit stuck and need some help to get me going in the right direction. I'm trying to do something similar to the lightbox style popup on this website: http://cargocollective.com/montessori I ...
1
vote
0answers
141 views

Query Pages and post excerpts dynamically

I have a custom home page, a blog page which includes a dynamic preview area of the latest 5 blogs, and some other miscellaneous pages. Im trying to design an "events" page where the main page has a ...
1
vote
0answers
90 views

Checkbox doesn't stay checked, conten

I'm using the morefields plugin to create textfields and checkboxes in the dashboard. For a test I have first created a checkbox on 'pages' if it was checked, the frontend showed the text ...
1
vote
0answers
460 views

How can I save a multiple select array with the settings API for a plug-in options page?

I'm thinking this may be more of a problem with my PHP rather than my use of the settings API, but I can't seem to get Wordpress to save an array of data for a multi-select box. The multi-select box ...
1
vote
0answers
65 views

Help with .htaccess and Login with Subfolders

I know this question has been asked many times, but I still not sure whether I have this correct. I am trying to make it so that my login page is here: www.url.com/login My WordPress installation ...
1
vote
0answers
97 views

Way to add captions to gallery images by code

I am creating posts by using wp_insert_post function. It works fine as I provide values in array required. Sometimes it is required to create a post having gallery. Without any problem, it also works ...
1
vote
0answers
119 views

Using window.onload with Ubermenu

I am using a plugin to place this code on specific pages. But it is not firing correctly. Has anyone had experience working with Ubermenu, WP and jQuery? Do I have to call jQuery into my ...
1
vote
0answers
402 views

How to edit php files in Child Theme?

I created a child theme and i want to edit a php file. So i copy and paste the php file into the child's theme folder and then i edit it. But it seems that nothing changed in the site preview! In the ...
1
vote
0answers
400 views

Unique key for each row in a repeater field

Is it possible to have a unique key for each sub fields in a repeater field? I don't want to use the array index, because the array index can be changed, when adding new rows between existing rows. I ...
1
vote
0answers
84 views

Media Upload Tab reload and change $_GET

I have created a new tab under the new media upload whose content is created by: $folder_id = $_GET['folder_id']; global $wpdb; $foldertable = $wpdb->prefix . 'icrm_folders'; if (!$folder_id) { ...
1
vote
0answers
118 views

Echo possibly causing custom template formatting conflict

I've created custom PHP code which allows for user input from two dropdowns and queries a database to return listings which are displayed on a page. The PHP code works fine as a standalone: Here. ...
1
vote
0answers
72 views

Need help enqueueing webfonts

I am attempting to enqueue web fonts that I am loading in via the WebINK font library. (This service is similar to Typekit). This service works by generating a unique CSS link for each unique site. I ...
1
vote
0answers
124 views

How to store options in an array

I am creating a custom table to display selected options for a page called "Testimonials". The user will enter their options on a "manage testimonial settings" page, and then those options will ...
1
vote
0answers
88 views

How can integrate zend module with wordpress admin dashbord

I want to add zend application into wordpress admin dashbord with a menu link.I have copy all the application folder files from zend application and create a plugin in wordpress,its working when we ...
1
vote
0answers
89 views

check if comment submitted was successful

I want to use php to understand if comment submission was successful. Is there any get/post data I can use to make if function for this?
1
vote
0answers
61 views

need help with existing code showing subpages

I am helping a friend make some changes to a wordpress theme. At the moment displaying subpages works only for one parent and its subpages (the one with id 31), but we want it to work for all pages ...