The server-side programming language that the WordPress core, plugins and themes are written in.
1
vote
2answers
1k views
wordpress site | All-in-one-cufon IE Issue
I have a site where i'm using the All-In-One Cufon (Wordpress Plugin), but having some issues getting it to render properly in IE.
The website: [removed]
The Problem: It works fine so far in Firefox ...
0
votes
2answers
1k views
When would you use $_post instead of $post?
I've seen some examples that use $_post instead of $post. What's the difference and when would you use $_post instead of $post?
Example:
if (have_posts()) :
while (have_posts()) : the_post();
...
0
votes
1answer
121 views
Return count for characters in the comment and perform action based on the length
I am calling recent comments into my template with
$comment->post_title
the variable length is specified like this :
SUBSTRING(comment_content,1,180)
how could I write a conditional ...
-1
votes
1answer
911 views
WP insert post PHP function dynamically generated Custom Fields
Further to my previous question WP insert post PHP function and Custom Fields
We have a working insert post function that can also send over custom fields without yet knowing the ID. Please see the ...
6
votes
4answers
13k 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
2k 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
61 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 ...
10
votes
3answers
5k 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 ...
0
votes
2answers
698 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 ...
7
votes
4answers
1k 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
4answers
1k views
Contact Form 7 from adding paragraph and break tags to HTML emails
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
416 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
170 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
463 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
79 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
270 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
1k 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 = ...
0
votes
2answers
570 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
1k 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
333 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
292 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
698 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
265 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
1k 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( ...
0
votes
1answer
169 views
Do not run this code on posts with a specific tag!
This is sort of complicated.
I am looking for some php help related to WordPress blog.
The basic requirement is that some HTML code (ad code) is not supposed to run on posts with a specific tag. ...
0
votes
1answer
180 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
112 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
93 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
270 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
660 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
417 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 ...
1
vote
3answers
947 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
587 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
519 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
251 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
138 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
984 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
582 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 ...
21
votes
6answers
2k 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
475 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
62 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
209 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
300 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
479 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
1answer
82 views
Get the most repeated post contents from a search?
In my site the posts content is always the name of a school, so if I search for Chicago I get a lot of posts with different schools as content. What I want to do is to get the Schools with the most ...
1
vote
2answers
258 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
1answer
595 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 ...
0
votes
2answers
1k views
How do I show current post content in the header?
I'm trying to add the post content in the header but for some reason it doesn't show anything. However it does retrieve the post content.
I wrote this:
<div <?php post_class() ?> ...
2
votes
2answers
210 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 ...