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

learn more… | top users | synonyms (1)

3
votes
2answers
733 views

WordPress as a backend only. How to output database content on public side without WordPress?

I'm a bit of a PHP MySQL newb but i feel i need to bypass WordPress for the frontend of a site i'm building (it is mainly just RSS and JSON feeds). I was wondering if there are any tutorials or advice ...
1
vote
1answer
509 views

User management system similar to wordpress one?

I am in very big need of a user management system just like the one that wordpress uses but without being blog related. I need to be able to manage users and apply certain privileges depending on user ...
1
vote
2answers
1k views

Initialize WordPress environment to use in a real cron script

I have to run a PHP script through real cron (WP cron being too unreliable). Within that script, I need $wpdb to insert data into WordPress table. But of course $wpdb will not be available as ...
0
votes
1answer
46 views

How *not* to show the last post on the latest posts list

An image speaks for a thousand words so please bear with me: http://interativo.modateca-sc.com/ The last post appears twice. Once as the feature post and then again on the "main blog part" where the ...
10
votes
1answer
422 views

Limit the number of inactive widgets

I'm trying to restrict the number of widgets from the "wp_inactive_widgets" sidebar to maximum 10, because the widgets admin page is incredibly slow: add_filter('pre_update_option_sidebars_widgets', ...
1
vote
1answer
199 views

Wordpress can't echo brackets

I am trying to make a simple plugin that will output the URL and title of a post. It should look like this: http://mysite.com/test-2/{Test 2} However when I use the code that I posted below, it ...
0
votes
1answer
407 views

Wordpress Specified file failed upload test

I am trying to upload a excel file to wordpress, i am getting error: "Specified file failed upload test.", .xls format file cannot be uploaded?? How do get arround it?
1
vote
2answers
826 views

Easiest way to show total number of subpages

I am making a portfolio site where each portfolio entry is a subpage of "Work". In my template, I am trying to say something like: worked on 15 projects and counting, where 15 is the total number of ...
0
votes
1answer
781 views

Three Questions with Twenty Eleven theme

I have a few things that I need help with in Twenty Eleven. The logo I put in the header is resized to 578px by 160px, when it is supposed to be 326px by 90px. I would like to simply the php code ...
0
votes
4answers
2k views

Wordpress wp_redirect error

I am trying to redirect this page if the user is logged in or not be i keep getting this error Warning: Cannot modify header information - headers already sent by (output started at ...
0
votes
3answers
2k views

Wordpress automatically adds <pre> tags when pasting code, how to stop it?

I am presently learning PHP and Linux simultaneously. And I want to blog my notes not only for my future reference, but also because it could help others. I just noticed an issue with Wordpress - - ...
1
vote
1answer
205 views

Wordpress Child Themes

I'm trying to redeclare a function in a wordpress child theme that is already in use by the parent theme. However, I get a "Fatal error: Cannot redeclare" message when trying to do so. Also, I've ...
0
votes
1answer
151 views

Query pulling a single post per month

I am trying to only show a single post per month on a query. I can set the date as a variable and use something like the php array_unique function to check the dates and only echo out unique ones, ...
-1
votes
1answer
761 views

Calling function from within functions.php returns unwanted value

I am trying to customize the output of the [gallery] shortcode to include comment count by this plugin: Facebook Comments for WordPress plugin I found a function by Zack Austin (shown below) that ...
2
votes
1answer
1k views

PHP/MySQL issues when running WP on EC2 cloud [closed]

I am trying to create a wordpress blog on an Amazon EC2 instance. The amazon base image had apache and php already installed. I installed MySQL manually in my user directory. I am able to login to the ...
0
votes
1answer
593 views

How can I sort the order of multiple custom field values in a custom post type?

Here's the website: KunzlerIP At the bottom of the website, you see a slider using Fancybox. Each thumbnail pops up some content from an individual custom post type post. For this custom post type, ...
0
votes
1answer
139 views

Custom forms with HTML

Will there be any issues with creating a custom form in the index page? Will I be able to get and post requests? It's a simple email validation form and once validated, the user will be able to ...
1
vote
2answers
258 views

Wordpress: PHP code rendering in the wrong place

I'm trying to insert a php code for a post-rating on wordpress. It used to work out of the echo normally and in-place. Now, using this code, instead of the rating showing up after "User Rating:" it ...
0
votes
1answer
248 views

Make separate text boxes for separate WordPress Custom Fields

I am trying to make usability of WordPress custom fields admin easier in my theme. I saw it in ElegantThemes' eStore theme. Only I couldn't figure out how to do it in my custom theme because I ...
0
votes
1answer
66 views

Getting a WordPress tag to print inside of a traditional php echo

I want to get the template path to print in this echo of a form in the admin. Here is what I got: < ?php echo of_get_option('splash_img_transition', ...
2
votes
4answers
6k views

Get custom post type by category in a page template

I've created a custom post type with categories and sub categories, what I need to do is list out the post titles and images for a given sub-category or category in a page template. I've got as far ...
1
vote
0answers
98 views

Unable to reorder the calendar using the WP Calendar plugin [closed]

This question is particular to the plugin "WP Calendar". The events are outputted in ascending order rather than descending which would make more sense since the newest should appear first. See the ...
1
vote
1answer
133 views

Wordpress: Access a plugin from within a theme

I am creating my own custom wordpress theme, this in general is not the problem. I would like to use a plugin that is normally used within pages/posts. (NextGen Gallery, to make a sort of slide show ...
0
votes
1answer
159 views

Call Current Category

I'm using this in a file named category-portfolio.php which is for the archives page of my portfolio. I don't want to use cat= to specify a specific category. But when I don't use cat= it pulls up ...
0
votes
3answers
240 views

A better code for no post format?

As suggested on this site, I am using this code to style an excerpt if no post format is selected/if it is a standard post. <?php $format = get_post_format(); if ( false === $format ) { echo 'This ...
0
votes
1answer
1k views

Add extra field to users

I have this code that adds the check box to the 'Edit User' page but when i check it, and refresh the page, the box becomes unchecked... what is wrong? add_action( 'show_user_profile', ...
0
votes
3answers
3k views

Create post from form with image

I found this wonderdul script that @Bainternet here at Wordpress Answers created, that makes it possible to attach images into posts from a html form.. I tried to combine in into my "html form to ...
1
vote
1answer
81 views

How do the pros code up a WordPress theme? Locally? Through FTP?

Up until now, I've been building my WordPress sites by transferring files through FTP. This can sometimes get really slow (time it takes to upload the file, Firebug slows to a crawl, etc.) and I was ...
5
votes
3answers
2k views

How to Remove all Instances of edit_post_link

Can someone please assist with how to remove from my theme, whilst in author mode, the edit_post_link (Edit link), throughout all my pages. Which php files in the Twenty Eleven theme (WordPress v3.2) ...
-1
votes
3answers
1k views

PHP code for link with text

I was exploring and ran across this post: Grab First Link From A Post, Grab First Blockquote I would basically like to do the same thing, but have it call not only the URL but also the link, since I ...
0
votes
2answers
2k views

Category.php template for custom posts

I'm trying to use my category.php file to display all posts of a certain custom post type (say "Company") with a given category. However, when I try to use it by navigating to ...
0
votes
1answer
737 views

Show the categories the current post has

I have a custom post type; posts of this type can have either one or two categories associated with them. I need to display the names of the categories that are associated with each of these custom ...
0
votes
1answer
102 views

Page permalink rewrite

I added the following code which allows categories on my 'Page' post type. add_action('init', 'edit_page_type'); function edit_page_type() { register_taxonomy_for_object_type('category', ...
3
votes
2answers
2k views

How do I remove a require_once admin panel from the parent theme from the child theme functions.php?

In the parent theme, the following is at the bottom of the functions.php file. require_once(TEMPLATEPATH . '/admin/admin-menu.php'); In the child theme's function.php, this code will include the ...
0
votes
2answers
3k views

PHP echo inside javascript

I've got jwplayer installed in wordpress and have it showing in a single.php page... the way I have it I need to get a custom field in the javascript and I;m having no luck echoing it in there. I know ...
0
votes
1answer
116 views

single.php error

writingyourwaytosuccess.com/blog Attempting to view a single post returns the following error: Fatal error: Call to undefined function atmosphere_posted_on() in ...
0
votes
4answers
566 views

Get Page ID from Backend

How can i get a page ID from the Admin backend? I'm saving data into a metabox on a 'Page' post type, and I need to return that data on the page in another area. But $post->ID obviously dose not ...
1
vote
1answer
536 views

Importing Geo data into wordpress database

I have a listing wordpress site and want to integrate geo data into the Wordpress MySQL Database for custom search functionality I want to utilize different aspects to create different things... ...
1
vote
1answer
2k views

Colorbox ajax loading of outside HTML content works perfect on localhost but not on server

I am trying to render content generated by a php file in [jQuery Colorbox][1] through AJAX in my WordPress site. The PHP resides on the same server in the same domain. It works perfect when I run it ...
0
votes
1answer
707 views

Help with Wordpress function inside a shortcode

I'm trying to spice up a theme of mine with some shortcode buttons but I'm having quite a bit of trouble when trying to call the author's name within the button itself. I tried simply including ...
1
vote
2answers
181 views

sidebar isn't showing, what's wrong w/ this code?

Here's what I have in my sidebar.php: <aside id="sidebar"> <?php if ( is_user_logged_in() ) { echo '<a href="/community"><img id="visit-the-forums" src="'. ...
2
votes
3answers
10k views

Setting custom cookies in Wordpress

I am trying to set cookies to re-route returning users to my a specific page within my Wordpress site. I'd like some advice with these 2 things: Where in the Wordpress php files should cookies be ...
-1
votes
2answers
2k views

How to strip/remove all blank spaces at the beginning/end of a search string

I use hack of Chris_O for highlighting the search terms. When a user enters the search keywords without any blank space in the beginning or at end of the search string it retrieves and highlights the ...
2
votes
1answer
765 views

Wordpress custom image size on custom field image

Hi can anyone tell me a good way to use a custom image size with a custom field image in a template without using something like timthumb/phpthumb. I've set an image size with... add_action( ...
7
votes
4answers
3k views

Wordpress and magic quotes

I've been writing some Wordpress plugins, and I've been having some problem with Wordpress putting magic quotes on POST and GET data. Specifically, the "wp_magic_quotes" function in ...
0
votes
1answer
54 views

Help Combine These Two PHP Codes

I have my WordPress post format codes: <?php if ( has_post_format( 'image' )) { echo 'This is a image post'; } ?> And my code to grab the first image from a post... <a href="<?php ...
1
vote
1answer
2k views

How do I hardcode a WordPress shortcode into my theme?

I am using WooTheme's Canvas theme and would like to "hardcode" in the [post_comments] shortcode into my theme. [post_comments] displays a comment link with comment count (ie Comments 10) in my post. ...
0
votes
2answers
286 views

If Statement Post Formats: No post format selected

I'm working with post formats, most of my code looks similar to this: if ( has_post_format( 'standard' )) { echo '<?php get_sidebar(); ?>'; } if ( has_post_format( 'aside' )) { echo 'this ...
1
vote
3answers
288 views

How to create post thumbnail

I am working on the WordPress Twenty Ten theme, and I want to display post thumbnails. I have followed the steps below: Added following code in functions.php file: if ( function_exists( ...
1
vote
2answers
1k views

Wordpress WP_Query() Not working properly

We would like to know that how we occur error when we implement this code in our sidebar.php $categories = get_categories(); foreach($categories as $category) { ...