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

learn more… | top users | synonyms (1)

0
votes
2answers
453 views

is_user_logged_in returning nothing on custom page

I am trying to use WordPress authentication on a custom PHP page however when checking "is_user_logged_in" it returns nothing at all and other functions are also returning nothing helpful. The code I ...
1
vote
2answers
184 views

Is there a way of putting the facebook social plugins into page template php files?

I was wondering if there was any way of putting the features that come with the "Facebook" wordpress plugin, such as comments, recommend and subscribe, on my front page which I created using a ...
1
vote
0answers
71 views

register_taxonomy() take much queries

Sorry for my poor English, I'm russian. I have a problem by adding a lot of taxonomies. When I added about 80 taxonomies, I get the following results(without caching): before: 44 queries 0.352 ...
-1
votes
1answer
391 views

Sort author list alphabetically

I have narrowed the code down to this: <?php $authors = $wpdb->get_results('SELECT DISTINCT post_author FROM '.$wpdb->posts); if($authors): foreach($authors as $author): ...
1
vote
2answers
508 views

Can is_page() be combined with a switch control structure?

I'm using an if/else control structure to add class attributes to tags. Could I use a switch control structure instead and if so, how? If not, is there a better way to do this than what I'm doing? ...
0
votes
1answer
65 views

avatar displays outside of targeted area

I use this micro message system script and I want to add an avatar to it, however, my lack of PHP knowledge is making this difficult. The code I use to display an avatar is: ...
0
votes
1answer
319 views

Geocoding an Exploded Custom Field Array

So, I'm having a little problem with crossing signals in WordPress between Google Maps' API and an exploded custom field. I want to be able to geocode an address that's been exploded from a custom ...
-1
votes
1answer
33 views

Specific php document for a page

I'm Doing a site with some content that can be updated by Wordpress, but, It would be a lot times if I could write a php document for one page and other php document for another page, Like ...
1
vote
1answer
2k views

How do I pass a post ID to the page URL?

I am using a form (gravity form) on my site. The form is inserted in a page (called form_page) on the users dashboard when they are logged in http://example.com/dashboard/form_page I am using a ...
1
vote
1answer
5k views

wp_handle_upload - The uploaded file could not be moved to wp-content/uploads/2012/09

This is the code I am using to upload the file to WordPress define(‘WP_DEBUG’, true); $filename = "test.png"; $tmpFile = download_url("http://url.com/testing/crop/".$filename); chmod($tmpFile, ...
0
votes
2answers
76 views

How to get movies by date

Ola, i am building a complex cinema site, and i want to get movies by date Ex: The movies are aded trought post type, I have a custom field name date. How can i retrive the Movie that shoud play ...
0
votes
1answer
387 views

Check if a class exists within a method

I'm new to OOP and I'm writing my first plugin. I want to check if the Facebook plugin has already been activated. If so, I want to skip some code: class MyClass { ... function fb_js_sdk_setup() ...
0
votes
3answers
153 views

How can i display 3 post types in same page?

How can i display 3 post types in same page search results. http://cinema.trancelevel.com/ For example i have post_type1-Movies post_type2-Trailers post_type3-Subtitrari Wen i search i want to ...
-1
votes
2answers
642 views

PHP Call to External Database

I am using the Sleek child theme from Studio Press and want to do a PHP call to this external database for it to display just like this link: http://www.escort332.org/tuskegeecadets.php . The Theme ...
0
votes
1answer
546 views

Issue displaying multiple TinyMCE editors with WPAlchemy

I have a custom post type with a WPAlchemy admin meta box class including multiple textareas with TinyMCE editors(for adding content to the custom post template). I've gotten the editors to display ...
0
votes
1answer
123 views

Query Custom Post Type by Tag

Kinda confused on this.. hoping someone can help. I have custom post type named "Providers" that I want to pull entries from that are tagged "highlighted". I enabled tag support on the custom post ...
1
vote
1answer
1k views

mysql query from wordpress page using custom table

I want to a mysql query that matches a page title. Not sure of a better way to accomplish this task, but I am stuck. This is my basic test code. <?php $page_title = wp_title(''); echo ...
0
votes
1answer
220 views

Adjust the order for returned posts

I have written a neat responsive slider for my Wordpress featured articles (feel free to use it): <?php $responsive = 'on' != get_option('henrik_responsive_layout') ? false : true; ...
-2
votes
1answer
928 views

Use ajax response in PHP function

Ok, so I'm working on a plugin and just ran into a problem. Here's what I'm doing: 1. Using a metabox with Plupload to upload an image to an upload dir in the plugin folder. 2. Upon upload success a ...
1
vote
1answer
82 views

Most liked page not displaying posts

I was looking for a post rating system for a while, then I stumbled across a great tutorial: http://wp.tutsplus.com/tutorials/how-to-create-a-simple-post-rating-system-with-wordpress-and-jquery/ I ...
1
vote
1answer
328 views

Changing the template hierarchy

Is there an easy way to change the WP default template hierarchy? For instance; Say I want to change my theme directory structure so that it completely changes from the Template Hierarchy suggested ...
1
vote
2answers
1k views

Loop through posts of a custom-post-type (event) and create .ics (iCal) file?

I really need your help with a feature I have never worked with so far. I have a custom-post-type named wr_event. And I created this custom WP_Query to retrieve all posts for this post-type that are ...
0
votes
2answers
132 views

Including a PHP file via a function that is part of a plugin?

I struggled with this all day, and now am here... I have a contact form generated by including a php. Presently, I have this code in my theme's index.php to include it: if ( is_page('contact') ) { ...
2
votes
1answer
2k views

wp_customize_image_control default value

I am trying to create a custom theme using Wordpress 3.4's customization options. I would like to create an option to change the theme's logo, but I would like to also display a default logo image. ...
2
votes
2answers
1k views

How to use nonce with front end submission form?

Thanks to a variety of posts on here I've managed to put together a front end submission form. After about 24 hours of tweaking I've finally got everything working including a redirect to a 'success' ...
0
votes
2answers
49 views

<?PHP getting changed into <!--?PHP

When I post a PHP code snippet into a wordpress post it will convert <?PHP into <!--?PHP To avoid this I must replace <?PHP with &lt;?PHP I am asking if there is a setting or easy ...
0
votes
1answer
129 views

Themes with variable width or single columns? I want to display source code

I've just set up a new wordpress blog, and as a developer I want to post some source code as well. Now I found the suitable plug-ins I need, and also a sleek theme, or so I thought. The problem is ...
1
vote
1answer
591 views

How to sanitize uploaded file filename from a plugin?

There is a problem with WordPress Form Manager plugin that doesn't sanitize the uploaded file filename. So, when a user upload a photo with special characters in the filename, you will not be able to ...
0
votes
1answer
549 views

Customize field names in backend profile edit page through function.php [duplicate]

Possible Duplicate: How To Add Custom Form Fields To The User Profile Page? I want to change a the names of some of the fields in the edit profile page in the backend. For instance, instead ...
0
votes
2answers
749 views

Category List in Theme Options Page

I am trying to create a multi-select category list in a theme options page and everything shows up but when i save the options only the last option from the multi-select box that is selected gets ...
0
votes
2answers
155 views

Get options from database using php class

I want to make a php class that gets an option from the wp database (which is an array of options) and be able to call this class with the name of the option and the class to return the options value. ...
1
vote
1answer
226 views

Change get_current_user_id code to the author's profile

I've been modifying a long abandoned plugin project that provides a Stackoverflow inspired badge system for Wordpress. I have upgraded some of its code so it functions with the new Wordpress version. ...
0
votes
2answers
211 views

is it possible to force wordpress to always save thumbnails as 'jpg' not 'png'

I cant see any settings and cant see much in the php api docs regarding this? for instance if the original file upload is a png wordpress converts to jpg
2
votes
1answer
226 views

Improving a Stackoverflow “inspired” badge system to display badges in author page

I've been modifying a long abandoned plugin project that provides a Stackoverflow inspired badge system for Wordpress. I have upgraded some of its code so it functions with the new Wordpress version. ...
2
votes
1answer
330 views

Adding a querystring to an image URL when clicking 'insert into post'?

I have written a plugin which does some fancy stuff with GD lib when you upload an image. Everything is working fine, however I need to get the image title and add it to the image URL (and file name ...
1
vote
1answer
170 views

Checking if Post Title is Unique as Loop Criteria

I'm trying to make a seemingly simple bit of php (it output's to a Gravity Forms field, but that's basically irrelevant). I'm using Gravity Forms to create posts, which I can do easily, however I ...
0
votes
1answer
422 views

How to call the_author_meta and make it work?

I am developing an author badge for my Wordpress site and I am learning how to call meta functions (needs to be within The Loop). The meta functions that I am calling are author bio related, like ...
0
votes
1answer
105 views

Search.php gets metadata from first post

I've got this in header.php in <head> section: $page_color = get_post_meta($post->ID, 'page_color', true); It works fine because it gets correct page_color for posts and pages but when I ...
1
vote
1answer
360 views

Whats the proper way to use a php stylesheet in a wordpress theme? [duplicate]

Possible Duplicate: How can I use WordPress functions in my stylesheet? I have a file, custom.php, thats basically a stylesheet with php variables for the styles. I used this guide to make ...
0
votes
1answer
111 views

Make table disappear when fields are left blank?

I made a table out of the fields in a custom meta box I created, but now I'd like to know if I could have the table disappear if none of the fields were filled in. Is this too complicated, is there a ...
0
votes
1answer
310 views

Convert function output into string

How can I convert functions like the_permalink() into strings like $permalink?
-1
votes
1answer
47 views

How to post data to a word press site in case of a mobile app

I have a site made with word press. I came across a requirement where a developer tries to log in from an ipad or iphone into word press site. Is there any plugin to achieve this ?. there is a ...
0
votes
2answers
259 views

Commas in Tag Cloud

Using <?php wp_tag_cloud(''); ?> to display tags on my website, how do I separate each tag with a comma but also remove the comma from the last tag?
0
votes
2answers
79 views

What is the most efficient way to manage changes my product comparison tables?

I have a site that features tables comparing products over hundreds of pages. Many of these products appear multiple times and I originally made these tables static, and now need a more efficient way ...
0
votes
1answer
91 views

Display static pages instead of category, in code

I'm very new to programming and not sure how to go about this. The following code returns 3 category names and feature images and then outputs them on the page. <div id="footer"> <div ...
0
votes
2answers
39 views

Making my first wordpress template

I making my first Wordpress template. I used this code to add only the h1 to the page. <?php $title = get_the_title($post->ID); echo $title; ?> But is there a code. That only add the post ...
1
vote
0answers
202 views

Two different registraton forms for buddypress [closed]

I have to different user types on my buddypress site, athletes and coaches. Is their any way to have two different registration forms on buddypress? The ultimate solution would be to have a dropdown ...
0
votes
1answer
153 views

Where are Sessions are being started? [closed]

I have this site here http://www.taranmarlowjewelry.com/, I am using twentyeleven theme and there is a session I need to adjust called 'PHPSESSID' The problem I having with PHPSESSID is that when ...
1
vote
1answer
2k views

How can I randomize a Nextgen Gallery Slideshow [closed]

Been googling for an hour now can't find the answer to what feels like a simple question. I have a very basic slideshow. I am using the shortcode to load it into the template page. [nggallery id=1] ...
1
vote
1answer
680 views

Memory errors with media upload, Wordpress can't use more than 96M (while there's 512 available!)

I'm aware that this is a known problem but I was unable to address it using information found in WPAnswers and Wordpress support forums. In my Worpdress single site installation the media uploader is ...