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

learn more… | top users | synonyms (1)

-1
votes
1answer
91 views

Errors while Loading Most Recent Version of jQuery

I am trying to set up my WordPress so that it will use the most recent version of jQuery. Here is what I have done so far: functions.php <? add_action( 'wp_enqueue_scripts', 'RegisterJQuery' ); ...
0
votes
1answer
162 views

Wordpress truncate posts question (plug-in related)

I'm using a plug-in ("Wordpress plugin random post slider") for Wordpress that pulls a random post from a category, and displays it in a slider for use as a shortcode or php code in a template. I've ...
-1
votes
1answer
81 views

Integrating CSS Into a WP Function Call [closed]

Below is a code I use to display post views. It is integrated with an options panel which allows users to choose whether to display it. I would like to integrate the div class .postviews directly ...
0
votes
3answers
2k views

Using a switch statement in Wordpress

I've got a piece of text in a div that I want to change on each page of my website. At the moment I'm not sure what function I should be using to do this. Here's what I have so far... <?php $page ...
0
votes
2answers
270 views

Countdown to date function?

When a user signs up on my site they have to select a date as part of resignation. On their profile page I need to show a countdown to that date. Something simple like attached. How can I create this ...
0
votes
2answers
1k views

Display background color or image with custom meta box?

With custom meta boxes, how would I go about displaying the background image (or color if no image is linked) within the page. Code for the page where I want data to displayed. I want to apply the ...
0
votes
1answer
977 views

Display multi-select box choices in a bullet list [closed]

I have a form that includes a multi-select box. <form method="POST" action=""> <select name="countries[]" size="5" multiple="true"> <option ...
2
votes
1answer
1k views

How can I get an XML export of my 1K+ posts WordPress instance?

I'd like to export my database to XML because the import script to my new blog already supports getting data from that. A database backup or wordpress clone is not that useful in this case. The ...
0
votes
1answer
394 views

How do I Split one Table into to lists for two seperate drop down boxes

I am driving myself crazy trying to find an answer, although I know it would most likely be something simple.\ I have a mysql table with the following columns: id first_name family_name ...
0
votes
1answer
139 views

the_post_thumbnail issues

I am trying to make the thumbnail for each post display on the homepage of a site for a client; although the thumbnails do display, they're not being displayed inside of a specified "thumbnail" div ...
1
vote
1answer
705 views

How to display conditional-content if wp_nav_menu( $args ) retruns something

I have a sidebar that displays child links of the current page (using this solotuin by http://wordpress.stackexchange.com/a/2809/27414) which works perfectly. If there is child links to be displayed ...
2
votes
1answer
896 views

How can one utilize a variable as a callback function name for add_settings_field

I'm trying to cut down on the amount of code that is in my theme options function. I'm adding my settings like so: add_settings_field($k,$v,$callback,$the_options,$the_group,$args); This works for ...
1
vote
0answers
105 views

Media Upload Tab reload and change $_GET

I have created a new tab under the new media upload whose content is created by: $folder_id = $_GET['folder_id']; global $wpdb; $foldertable = $wpdb->prefix . 'icrm_folders'; if (!$folder_id) { ...
0
votes
2answers
440 views

Show last 5 posts from specific category

I'm trying to show the last 5 posts from a specific category, which will be linked to a function so i can insert the shortcode in a Wordpress page. The code i have is as below, it does everything i ...
0
votes
2answers
143 views

linked php file not executing php

I have a menu that has the following link in it to my homepage: <ul id="css3menu1" class="topmenu"> <li class="topmenu"><a href="<?php bloginfo('template_url'); ?>/homepage.php" ...
0
votes
1answer
2k views

Passing multiple variables through url (php)

I'm trying to pass two values to another page. Both pages are WordPress page templates. First, I pass the value as such: <tr ...
0
votes
2answers
119 views

Create a Blog Template Page

I am trying to create a template that will display a list posts of a specific custom type. However, I am missing something fundamental. So far, here is what I have: functions.php add_action( ...
2
votes
2answers
236 views

javaScript in <head> section of WP API

How do I place the following javaScript in the <head> section of the Wordpress Widgets API menu screen? <script type="text/javascript"> jQuery(window).load(function() { ...
0
votes
2answers
146 views

Is there a way to create a “copy post” link?

Much like the "edit" link when viewing a post, is here a "copy post" function I can include with my theme?
0
votes
1answer
548 views

Some problems calling a function into sprintf() inside functions.php template file [closed]

I am new in PHP and WordPress and I am personalizing an existent template and I have the following problem. In the function.php file of the template I have the following function: function ...
0
votes
1answer
2k views

Different registration form for different roles

I have customised the worpress registration page by adding new fields using the Cimy User Extra Fields plugin so my site is now fine for allowing users to register as contributors. I now want to ...
3
votes
1answer
770 views

How to use multiple query with same meta key

I use these codes to print custom field query. My custom field key is out_wiki <?php if( get_post_meta($post->ID, "out_wiki", true) ): ?> <div class="outlink"> ...
6
votes
2answers
2k views

How does Wordpress support Unicode?

I've been looking through Wordpress' codes and they're mostly using PHP's regular string functions, like strlen, strpos, etc. Yet I know Wordpress supports utf8, so how does it do that? Does it ...
0
votes
3answers
259 views

Specifying Mouseover Icon for Custom Post

I am using the register_post_type function in order to create a custom post type. I am already using the menu_icon parameter in order to set the admin icon for the post type. But, how can I set the ...
0
votes
1answer
19 views

Odd page behaviour after removing sidebar

One of my web pages is displaying odd behaviour, after selecting a no sidebar template for the page. The sidebar has disappeared, but elements within the sidebar, now show in the bottom right-hand ...
0
votes
1answer
68 views

Include text in echoed hyperlink

I´d like to include an extra two words into an echoed hyperlink. I have no PHP knowledge so far. Could anyone put me in the right direction? <p class="excerpt"><strong> Bekijk meer van ...
0
votes
2answers
296 views

Password form redirection to belonging post

My idea is that the visitor enters the password on a page and than the wordpress post with belonging password load if there is one. Here is the code: Form on page: <form method="post" ...
2
votes
1answer
90 views

child theme inherticance and php autoload

I wrote this method in a parent them that will auto load a class based on the class name, thus if the class name is: SomeFolder_Folder_Folder_Class.php then it will convert that to: ...
0
votes
1answer
404 views

Display a list of users with avatar filterable with alphabets

I'm trying to create a page which should display a list of users with the role "Author" only and exclude all other default and custom roles. I also want them to be filterable by alphabets, so if I ...
0
votes
1answer
295 views

How do I add php to all links automatically?

I'm using the Qtranslate plugin for my site. It's a pretty cool plugin and works great to a degree. I'm having a problem though when users add links to internal content in the WYSIWYG editor in that ...
0
votes
3answers
675 views

How to put a form with php code into a variable or shortcode?

I'm trying to put my frontend form into a variable or a shortcode so I can wrap another shortcode around it (specifically Bainternet Post Creation Limits). My form has PHP code in it so I'm not ...
0
votes
1answer
1k views

Execute PHP code in Javascript onclick

When a user clicks on the table row, I want to: save a value in the user profile go to a page I am within this loop: <?php $query = new WP_Query(array('post_type' => 'aanvraag', ...
1
vote
1answer
360 views

How to: PHP Log Out Link?

I originally came here to find help on creating a string of text that would display a login link, and when the user was logged in it would should their username. Travis Pflanz had the answer for ...
1
vote
3answers
189 views

How to break down importing of feeds

I am attempting to update a large array of feeds into WordPress, using fetch_feeds. As can be expected, when going over 50 feeds the server is starting to time out. I would still like to update the ...
1
vote
2answers
5k views

Limit the_excerpt with max of x characters

What I'm trying to do: I want to display the_excerpt, but I have a maximum of x characters the_excerpt may use, but I don't want to display a couple of characters of a word, only whole words. Some ...
1
vote
1answer
1k views

Check if current page is wp-admin

I have created a common custom dashboard for my users located at "http://website.com/login/dashboard/" I'm trying to redirect users to that custom dashboard only if they are NOT admins & if the ...
-1
votes
1answer
15 views

Duplicating wordpress install issue

I wonder if anyone could help me with a problem that I am having. I am having a guy do some plugin/theme customization on my wordpress site and he wants to have a duplicate of the site to work with on ...
0
votes
1answer
158 views

go to home page when i select default in select-box

I'm new for WordPress. I'm using following code, <div id="cat_list"> <?php wp_dropdown_categories(array('show_option_all' => 'Categories') ); ?> </div> And my JavaScript ...
0
votes
1answer
91 views

Amending PHP for Wordpress Theme

I have downloaded the following theme (http://demo.fabthemes.com/xenastore/) and i need a little help amending the index page. At the moment it lists every product that i have created on the front ...
0
votes
1answer
200 views

Display wordpress post to static website in the footer

I am a totally fresh with wordpress I have this website : http://www.raminusa.com/ in footer there is a column name "Popular Link" and I want to replace it with Recent News that I will do but below ...
-2
votes
1answer
91 views

I would like to alert message while another user is editing or update data in wordpress admin panel, what should i do?

My question is that when one user is editing and have another user is editing the site too , I wanna get one alert message to tell the user that now who is editing.
0
votes
1answer
513 views

Finding and removing duplicates within WP Arrays

I'm looking to see if it's possible to find and remove duplicates from the arrays generated below. I've tried array_unique array_merge and they haven't worked. $category = get_the_category(); $tags ...
0
votes
1answer
114 views

get_permalink returning first letter

I'm trying to use an ajax function in my custom template to retrieve a post's custom fields to show a post overview. Getting the custom fields is working, but the getting the permalink isn't. I'm ...
0
votes
2answers
573 views

How to make widget title accept php?

I am trying to make widgets accept php, but without resorting to plugins. So far I have enabled php for the widget_text but cant make it work for widget_title. I am using the following code in ...
0
votes
1answer
50 views

Utilize Function in Child Theme / Template File

With a plugin, I have used require_once in the init.php of a plugin that I have made for my site to make functions available. With a child theme, where should I put the calls to require_once? When I ...
0
votes
1answer
765 views

Wordpress -> If Is Role Subscriber Show Image?

So here's the deal..I have Wordpress + bbPress integrated with a membership software (aMember). On my bbPress forums, under people's username i want to show the Wordpress roles (Not bbpress roles) of ...
0
votes
1answer
2k views

Add class to DIV depending on page loaded

I'm designing a new theme and in my page template a have a section where an image is displayed . I would like this image to change depending on which page is loaded. The section is a DIV like this: ...
0
votes
1answer
150 views

Doing action based on input from options menu

This is my first time writing plugin. I have managed to get options menu with the html form: <?php add_action('admin_menu', 'menu'); function menu(){ ...
0
votes
1answer
132 views

Display Custom Field in Sidebar if Value is Present

I'm trying to use 'if' 'else' to display a link button if I have a value in the 'TourURL' custom field, and if not, nothing will display but can't seem to get the if code to work: <?php if(global ...
2
votes
1answer
858 views

Getting the Current User

I am trying to use information about the current user in a plugin that I am designing and I have seen people go about it in several different ways. My Way This way seems to work, but am I missing ...