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

learn more… | top users | synonyms (1)

14
votes
4answers
27k views

WP insert post PHP function and Custom Fields

The wordpress function is used for submitting data programatically. Standard fields to submit to incude the content, excerpt, title, date and many more. What there is no documentation for is how to ...
1
vote
2answers
4k views

Show dialog box in TinyMCE plugin and use WordPress php functions in it

I'm adding a TinyMCE button to my plugin. So far, I've been able to add the button and call my editor_plugin.js file and it's command. Not an easy mission btw... I want this button to show a Dialog ...
0
votes
1answer
69 views

Non-Closing PHP Query in WordPress Loop

I have the following query in WordPress to call custom post meta, everything is working fine, with one exception, whichever query is second is echoing nothing. Sorry for the WordPress post, but for ...
1
vote
1answer
1k views

Wordpress theme options and insert default value for serialize data

How to add default values for theme options? Currently I use basic option from this site The sample will stored option value in serialize on database. When we activate the theme, there is no value in ...
18
votes
4answers
15k views

How to get WordPress Time Zone setting?

Can someone tell me how to get the time zone that is set in the WordPress Admin? For example, if the blog is set to Eastern time, I need this exact string to print out: US/Eastern This is for a ...
2
votes
3answers
2k views

Using a loop to display terms associated with a post

I'm using a custom post type and custom taxonomies, and using the following to display the terms of the taxonomies on the post page: the_terms( $post->ID, 'taxname', 'beforetext', ', '); Is ...
11
votes
5answers
4k views

Inserting terms in an Hierarchical Taxonomy

I'm really having a few issues with inserting terms. Here is my scenario: I have a taxonomy called veda_release_type: //Release Type and Region $labels = array( 'name'=> ...
2
votes
5answers
3k views

Contact Form 7 from adding paragraph and break tags to HTML emails [closed]

I'm trying to stop Contact From 7 from adding paragraph and break tags to HTML emails but can't figure it out. About 4 blank paragraph tags are added at the beginning of the email and two at the end. ...
0
votes
1answer
646 views

$wp_filesystem returns NULL. What are the dependencies?

I need to obtain a reference to the $wp_filesystem object. In the test below, the var_dump($wp_filesystem) returns NULL. What additional files are required in order to properly set up $wp_filesystem? ...
0
votes
1answer
207 views

Help with accessing wp-admin page and resolving error messages

I was recently advised to reinstall both wordpress and my wordpress theme due to (i think) a still unresolved error with a slide manager, but on doing so, apppear to have lost access to the admin-wp ...
4
votes
2answers
718 views

How Attackers write script into my php files?

I have a blog created with wordpress, now i have a problem. Attackers writes javascript codes into my files. Let's assume i have holes in my plugin scripts, but how can they write into php files? ...
0
votes
1answer
87 views

2 small questions: How to redirect to a created page & show that pages title in wp, bp

im trying to redirect the loggedin user to a page i created on the backend, i want to use my index to do so so, i added a do_action wrapped in an if statement is_user_loggedin() to call my function. ...
1
vote
1answer
284 views

How to run JS, PHP and etc. inside WP post?

I would like to try little web apps with WordPress. Just to accept some values for few fields and present the output using AJAX. What are all the necessary modifications on WordPress? So, far ...
1
vote
4answers
3k views

How to tell if $query_var isset?

I tired to use isset($queryvar) but that didnt work, so I implemented my own function qv_isset, but it runs into a problem when $ch is set to 0. $cls = get_query_var('cls'); $ch = ...
3
votes
3answers
1k views

Extract the first oembed url inserted on the content of a post

I want to extract the first oEmbed url inserted on the content of a post in order to put in a meta tag from the header, or elsewhere as a way to style it differently from the rest of the content.
0
votes
4answers
2k views

Translate wordpress date from Italian to English

I'm developing a wordpress based site in English but I've installed the Italian version of it... In my blog page, I get dates, exactly months, in Italian instead of English... How can I translate ...
1
vote
1answer
371 views

What's the best user registration library to integrate WordPress?

I'm looking for a library that can handle user registration (name, address, e-mail etc.) into my existing WordPress website. What options exist today, or will I have to pull my own?
0
votes
1answer
306 views

Post thats in Two Categories, only want to display name for one

In my Wordpress site I've created, I'm having issues hiding or not displaying one of the category titles I set up. I'll try to explain better. Wordpress Admin Side I have a post that is in two ...
0
votes
1answer
787 views

$_GET['updated'] does not work in Wordpress 3.1?

I tried the Satoshi Theme in Wordpress 3.1 and when the Theme Options are saved, they do get saved but the "Satoshi Options Saved." message is not displayed. (the message is displayed in Wordpress ...
1
vote
1answer
324 views

How to implement three forms(like contact form) in wordpress

I am working on wordpress site.I need here to implement a form that is manageable from admin mean that admin can add field as requirement.Right now I am using fast and secure form plugin by default ...
2
votes
2answers
2k views

Alter query on edit.php

What's the best way to alter the query being run on the Posts Edit screen (edit.php)? The current method I'm using is by passing an argument to the global $wp_query like so: $wp_query->query( ...
1
vote
1answer
265 views

On update to 3.04 site started recording accents as “á” and “á”, what to do?

One day my site worked perfectly and the next it suddenly started to have trouble recording accented characters. The problem affects posts' body, if I submit a post with an accent on the title it ...
1
vote
3answers
135 views

Does WordPress have a built in reference to the PHP version its running under? [closed]

I have a plugin that has a single method that requires PHP5. How can I code around the fact that the server may have PHP4? Code is below... (I'm thinking its the DOMDocument object that's freezing ...
1
vote
3answers
99 views

Styling images coming from another blog

I had asked a question earlier, on getting post-thumbnails from another WP-site. There, the awesome Mike coded a SQL query whose results are then passes on to a PHP array. The piece of code from that ...
0
votes
1answer
311 views

Why doesn't PhotoSmash plugin play well with wp_query?

I am using the PhotoSmash plugin to let users upload their own images and vote on them, and it works great. On one of my pages I use the following code to list the posts that have a certain category: ...
0
votes
1answer
764 views

How to send form data from WordPress (Meta Box) to an OData service?

I have created a form within a Meta Box on the 'Add New Page' screen. I want the data from this form to be sent to an OData service on a central server. I can see that OData is supported on PHP ...
2
votes
1answer
1k views

Appending meta value onto post content in WordPress during save_post

The problem seems pretty straight forward: Once the save_post action is fired, I would like to append the value of a meta key onto the end of the post_content if it's not already found within the post ...
2
votes
3answers
2k views

Disable comment rss feeds for pages in wordpress

I am currently working on the completion of a custom template and my last hurdle is to be able to remove the comments feed link being added to the head of the page. For example: in firefox when you ...
5
votes
2answers
902 views

Only Showing Upcoming Events

In the sidebar of this page: http://lifebridgecypress.org/our-people, I have a list of upcoming events using this code... <ul id="upcoming-events"> <?php $latestPosts = new WP_Query(); ...
0
votes
1answer
857 views

simple fields plugin custom query

I have a collection of posts for families. I'm using the simple fields plugin for handle members of the family. Is there a simple way to query posts based on values from the custom fields created by ...
0
votes
2answers
340 views

How to determine which capability to use?

For example, I want to use add_menu_page() function to add a menu item to the dashboard. To control which users will be able to access it, I'm supposed to use capabilities... <?php add_menu_page( ...
1
vote
2answers
148 views

What may be causing failure of auto-install features in Wordpress (v3.0.3)?

What may be causing the installation errors I continue to get when trying to auto update anything in Wordpress? I've been manually upgrading everything for quite some time, and I've tried all sorts ...
0
votes
2answers
2k views

Are there action hooks for comments?

This is for a personal-use plugin I'm trying to make. I want to submit a comment from site A to my blog (sort of like sending trackbacks/pingbacks but a full comment). For instance, on site A I have ...
1
vote
1answer
716 views

Template tags for Buddypress

Is there a place that shows all available template tags and how to use them similar to how wordpress does? I'm trying to link to a profile within a loop. Ex of output <a ...
27
votes
6answers
4k views

Using OOP in themes

I see a lot of plugins making use of object-oriented coding when there isn't really necessary. But what's even worse is that theme developers are starting to do the same thing. Commercial themes and ...
0
votes
1answer
500 views

Help with WP Business Directory Manager Plugin?

I'm using the WP Business Directory Manager plugin and I'm having some problems. The developer hasn't been supporting the plugin lately, so here I am. I need to change the field order. Currently the ...
0
votes
2answers
66 views

Removal of all posts content in bulk, keeping the posts itself

How to, using PHP scripting or WordPress overwrite all of the posts (permamently, so it takes effect on database) with some static text such as "Content removed."?
0
votes
1answer
229 views

How to list posts from a plugin taxonomy?

I would like to query posts from a taxonomy created by a plugin (WP Business Directory Manager). How would I do this? I want the query to create html listing of the posts and allow me to list a ...
2
votes
1answer
329 views

Add filename to attachment page url

I wan to change my premalinks to attachment pages from http://example.com/.../attachemnt/something to http://example.com/.../attachemnt/something/something.jpg It should simply add filename but with ...
0
votes
1answer
551 views

How to Configure Events List in Wordpress to Disappear Event Once Date is Past

I currently have some code setup to display upcoming events set by the admin based on the date of the event. The upcoming events are sorted by the next upcoming event, starting from the top, and then ...
1
vote
2answers
294 views

How do I display the function the_content in this loop?

I have this loop in my wordpress site which displays the latest posts with their titles, I want to display the post content after the title. I normally retrieve it with the function get_the_content ...
0
votes
3answers
2k views

Removing Wordpress Footer -without access to PHP code?

I want to remove the "powered by wordpress" and theme name in the footer, but all the tutorials refer to clicking on the "Appearance" tab, clicking on an edit button, and then going to the php ...
2
votes
2answers
254 views

Comment filtering (search)

Basically I want to develop the ability to search comments on my site. A form with input field where the visitor can enter a search string, which tells WP to display only comments that contain that ...
0
votes
2answers
408 views

Custom Slider Per Page created

I am developing a site that will need to have a slider with 4-8 images, but only on certain page-types. These pages must be editable and the sliders must be able to be updated whenever I'd like. I ...
1
vote
2answers
3k views

How do I make wordpress comment fields required?

Here is my form: <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform" class="validate"> <?php if($user_ID) : ?> <?php ...
3
votes
1answer
1k views

Get the sidebar ID in which the current widget was dropped

How can I find out in which sidebar was a widget dropped? From inside that widget. More precisely from the form() function. Can I automatically remove the widget if it's not added in the appropriate ...
2
votes
1answer
304 views

Count widgets of a certain type

How can I get the number (count) of, let's say, text widgets from a sidebar? for eg. if I drop 4 text widgets in the sidebar, I want to get this number somehow from another widget
1
vote
1answer
114 views

A function that returns true when the Author is a certain role is_author(admin)?

I need a function that returns true when the author is an admin or an editor or of a certain role. I can't use is_single because I have set up a forum and there are a million singles out there and I ...
1
vote
1answer
572 views

How do I let users upload files to a chosen location?

I found some plugins which let me make my own forms but none worked for different reasons. I simply want to make a form so that users can upload files to a folder located in www.chusmix.com/images ...
1
vote
1answer
380 views

How can I show the post thumbnail from the most recent of a certain post type, in widget?

I'm using the excellent PHP Code Widget plugin, and want to create a widget that displays the post thumbnail (aka featured image) for the most recent 'project' post. Here's the code I have so far, but ...