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

learn more… | top users | synonyms (1)

2
votes
3answers
2k views

Import 10,000 Users into Wordpress WITH a specific ID for each user

I have a website which has about 10,000 users. I am converting this site over to Wordpress. The new site is ready to roll, but I have to bring over all the users. There are a number of plugins ...
0
votes
1answer
124 views

Pasting this PHP breaks my page. Why?

I tried a few echo commands, and they return properly. Breaking Statement <?php $gallery_ids = $wpdb->get_results( "SELECT gid FROM ".$wpdb->prefix."ngg_gallery ORDER BY gid ASC", ...
0
votes
1answer
335 views

Page load timer?

Ok, so I'm confused as to what's going on here... I've been trying for hours now to get a relatively accurate page load timer setup on my WordPress site, but nothing is working like it's supposed to. ...
0
votes
3answers
13k views

Warning when using <?php include 'thefile.php'; ?>

Would need some more help with the Did ask a question how to import some code with php, in this case it's a sidebar that will be used on some of the pages on a website, It's wordpress and it can ...
0
votes
1answer
210 views

How to call a specific value within the functions.php file?

Hi all, I'm a newb here, but hoping someone might have the answer to my question. Within my functions.php file, I have this code: //Contractor Page meta box details $contractorpage_meta_box=array(); ...
0
votes
1answer
242 views

Check against server time to display SQL entries - Radio Station DJ Rotator Plugin

I'm building a WordPress plugin that will create a radio station "On-Air Now" DJ rotator. Working options panel I've built so far: http://i.stack.imgur.com/SiYde.png I've based the idea on a PHP ...
0
votes
2answers
419 views

How to know where this function definition is declared?

I am new to wordpress, I wanted to know where this definition is mentioned in wordpress return apply_filters('check_password', $check, $password, $hash, $user_id); I found it in pluggable .php ...
0
votes
1answer
135 views

In adding CMS functionality to static website, is complete conversion the only way?

I have a static website that is built in ASP.NET and PHP, and I want to add the functionality of a CMS to it. I know the most complete way would be to convert the whole site over to WP - mimic the ...
0
votes
1answer
40 views

Creating a blog on my companies new website using Wordpress but I have sidebar issues

As said in the title, I am creating a blog on my companies new website using Wordpress but I have sidebar issues. The website is only in production phase at the moment. The Link is so you can see ...
0
votes
1answer
773 views

Error on Include php:/usr/share/pear

I'm trying to work with an old plugin http://wordpress.org/extend/plugins/wp-ecards/ (I'm not the plugin author) and I get this error in the php error log and a blank screen when trying to view the ...
1
vote
1answer
3k views

Front end submit form with jquery form plugin

Maybe someone can help me with a small problem I'm having. I'm trying to use this: http://jquery.malsup.com/form/ to create a submit form for Wordpress. I've tested it on a regular site(not WP) and it ...
0
votes
1answer
57 views

custom data in url

Inside a WordPress site I load a external xml file parse it and show some links. The link looks like this: domain.com/prof/vac/item?guid=1234&title=foo This works, but now i would like the url to ...
0
votes
1answer
564 views

How to deal with a GET variable of 'name'?

I'd like to have a custom registration confirmation page live within a WordPress site. I can provide a URL for this page to an external site. When the registration is successful the URL has several ...
0
votes
1answer
398 views

How do I call an external php non WordPress class into functions.php?

All my WordPress files are in: /httpdocs/news/ and the classes I want to call are in: /private/classes/ Would I use the include_once() function or is there a WordPress function? And how would I ...
1
vote
3answers
325 views

Why the JavaScript code is ignored from wp editor?

In WordPress when i publish a page with JS code is ignored and don't returns anything. How can I make sure that when I write a HTML+JS code will be converted to output?! Like: <a class="print" ...
1
vote
1answer
551 views

Thumb rating for wordpress - top user

I am currently using gd star rating (thumb rating) to rate posts (articles - no rating on comments). What I really want to do is show a table of the top 5 users and their number of votes based on the ...
1
vote
1answer
270 views

Cause of Blank Lines Being Added to WP FIles?

Does anyone know why some of my websites add a blank line after every line of code, while others on the same host and server leave the files untouched? A few details that might help: PHP Version ...
0
votes
1answer
159 views

How to define template directory in this widget code

How can I define the template directory (So I can reference and image in the 'images' folder) from within this php widget code? // WIDGET CODE GOES HERE ...
0
votes
2answers
492 views

wordpress sql posts query won't display the latest post in a specific category

Hi I tried to display 5 posts titles from a specific category also show the date, but it won't display the most recent one that just published, I had to change the recent post date 2 months so it'd ...
1
vote
2answers
223 views

Anonymous functions usage

Just wondering what the preferred method of using anonymous functions is. First I had some code like this: function page_columns( $columns ) { $columns = array( 'cb' => '<input ...
-1
votes
2answers
185 views

Upgrade to WP 3.2/ and Server to php5 breaks theme? [closed]

I upgraded to Wordpress 3.2 and my server from php4 to php5 and now my site outputs this error; Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server ...
0
votes
1answer
407 views

How can I increase the post count for custom post types only?

I have the page count set to the default 10 in my reading settings menu. However, I use my template archive.php file for all post types, including posts and books How can I change the loop so that ...
0
votes
1answer
1k views

Show Custom Menu Name in Wordpress 3

Is there a way to display the name of a custom menu in the frontend? I can't use the widget title because of the usage of many languages.
0
votes
1answer
49 views

Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed

What are the differences, in terms of overall "work" required by the PHP processor to retrieve a page using these two permalinks settings: /%post_id%/%postname%/ vs /%postname%/ The second ...
2
votes
3answers
344 views

Is using eval() ok in this scenario

I am trying to include user input includes using "get_template_part()" The includes are added in the theme options eg a user inputs. get_template_part('content/block', 'branding'); ...
0
votes
2answers
241 views

Drupal is going Symfony. Would WordPress benefit from doing the same? [closed]

If WordPress would do the same, would it lose much in performance?
1
vote
2answers
281 views

Applying OO patterns and principles to plugin development

I'm busy writing my first plugin, using PHP 5.3.5. I come from a C# environment, and I must say I'm more than happy with the level of support for good, solid OOP techniques in PHP. However, I'm a ...
1
vote
1answer
40 views

Extract 1st word of blogname/insert in middle of new string

Wordpress Website Name (say) = "German Philosophy Politics & Economics" I want to return "My German Site" I have tried the following : <?php $myvalue = bloginfo('name'); $arr = explode(' ...
1
vote
1answer
451 views

Error with Image Slide plug-in/ s3slider in WP

I'm using Wordpress Version 2.8 (Can't upgrade where I work); and I used 'Emerald Stretch' theme as the basic bone structure of what I'm developing. (Which ultimately will be a responsive wordpress ...
1
vote
1answer
393 views

Displaying icon image for WordPress post formats, is there a cleaner way to do this?

The code I am currently using in the loop is in this code snippet: https://gist.github.com/1316622 This just seems messy, and long. I am thinking the best method would really be to use CSS ...
0
votes
2answers
827 views

How to load previous or next attachment with jquery ?

When i am on the single.php page, i show the first image attachment. then i would like to load the next (and previous) image attachments without reloading the page. so in single.php i started with ...
-1
votes
1answer
1k views

Worldpay Integration in Wordpress

Hi: I am working on a fast food website project, the theme is configured and all the data has been placed related to fast food, like the Order Menu, The payment method that will be used to order food ...
0
votes
1answer
485 views

Plugin: Front-end Editor - User role specific editable content?

(using scribu's front-end-editor) Currently I have several custom fields and taxonomies that appear on posts as they are created by users. Each author is able to edit only their own posts. However, ...
3
votes
3answers
8k views

How to validate WordPress generated password in DB using PHP?

I am working with site that is done with WordPress, and I need to add some parts that are outside WP, and to check user login, Logging users outside WP. I tried with md5 of password but it's not... ...
6
votes
3answers
23k views

How WordPress encrypt password? [duplicate]

Possible Duplicate: How to validate WordPress generated password in DB using PHP? I am working with site that is done with WordPress, and I need to add some parts that are outside WP, and ...
1
vote
2answers
4k views

Working with query_posts ( arrays and query strings)

I'm trying to use the search query along with an array of arguments to narrow down search results, but I'm failing horribly. This is what I have so far. $paged = (get_query_var('paged')) ? ...
-1
votes
1answer
2k views

WordPress plugin/code to to to next/previous post in same category

I have spent days looking for a WordPress plugin to automatically add next and previous links to the bottom of each post. I have found loads of plugins but I want one that will restrict the posts ...
6
votes
4answers
758 views

How do you code for WordPress?

In plain php and frameworks coding is done with the help of IDE tools, im using PhpStorm and very happy so far, recently i decided to discover most popular CMS this days and got confused how do you ...
0
votes
3answers
937 views

How to get the second slug of a page url?

I have posts with a custom field called year. The year ranges from 1900 to 2011. I want to create an individual page for each year which will displays the posts with that year. So I will be creating a ...
0
votes
2answers
298 views

Dynamically append custom post type to end of url

At the moment my nav menu's category list only links to normal post_type archives. I'd like to dynamically append a custom post type, specifically ?post_type=portfolio, to the end of each url that ...
0
votes
1answer
2k views

how to edit wp category widget

how to edit wp category widget, so it would not show one of specified category? For example, it shows all categories in list, and I need to remove category Books, from it, how can I do it? Best ...
-1
votes
1answer
3k views

how to get category name if my category got custom slug

so my category got slug 'aeroplanes' and I need to get category names from it, but I can't get it with $category = get_the_category($post->ID); echo $category[0]->cat_name; cause it takes ...
-1
votes
1answer
170 views

Implement “No related posts for this entry” into the loop?

For my related posts I have set up a scrollable container. I need the HTML to be outside of the loop or otherwise the layout will be a mess if there are no related posts to display (missing divs that ...
2
votes
2answers
215 views

WordPress 2.8.5 & 'Responsive Twenty Ten' - error

So, According to the WordPress theme download page; the theme 'Twenty Ten' and it's child theme/plugin 'Responsive Twenty Ten' are compatible with 2.8+ I'm stuck with using 2.8.5 at work, I don't ...
0
votes
2answers
250 views

Modify pages widget and make a plugin?

I would like to make a plug-in that adds a widget. I would like it to be based on the current pages widget but add the ability to select either include OR exclude by drop down or checkbox then list ...
-1
votes
2answers
396 views

Im using a right approach to use this class inside WordPress theme?

I'm using a class to retrieve values from custom tables that I need to use in different files of my WordPress Theme and im not sure which is the best approach for this. This is the class i got right ...
1
vote
2answers
212 views

Can you run Wordpress on a MarketLive/Java EE server?

I am using MarketLive. I want to install Wordpress into a subfolder, but the person I'm speaking with says they can't do it because my site is built in Java. I want to install wordpress on my domain ...
0
votes
1answer
430 views

“operation successful” message

i'm writing some custom wordpress pages, and i want that after an action where the user has addess an item to a list (after the user press the submit button and the page reloads showing the updated ...
0
votes
1answer
279 views

Showing author box on post detail page

Being new to word-press as well php i am struck at a point. I am trying to display author information along with his picture in the post and have successfully able to fetch all the data from ...
0
votes
1answer
459 views

display sticky post outside loop and exclude from loop

I have a "featured" area in header.php that displays the content of the latest sticky post: $last_sticky_post = get_post(end(get_option('sticky_posts'))); if(!empty($last_sticky_post)): ...