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

learn more… | top users | synonyms (1)

4
votes
1answer
354 views

List latest posts in WP-Admin

I run a multiple author site and I have created a plugin in wp-admin where authors can connect and collaborate with each other. To enhance it, I want to display a list of latest posts, this list ...
0
votes
1answer
71 views

Cloning add_settings_field() with jQuery

Is it possible to setup one add_settings_field() in an options backend and then use jQuery clone function on the front end and be able to create multiples of whatever and save that in an array? I've ...
0
votes
1answer
264 views

Page Options Saving But Not Updating In Backend

I have created a custom options page for a slider that you can upload slides to. Everything works great except when trying to save the data. It will get saved and I can use it on the front end. But ...
2
votes
1answer
538 views

Rewriting search and pagination base

After trying for weeks now how to find a working solution I got rid of most of my functions and trials and just left the pagination function underneath in my functions.phh file: /** * Pagination ...
-1
votes
1answer
555 views

Adding Meta Tags to a Post using its Tags, Excerpt and content

I run a multiple author platform where I have added conditions that force authors to add tags to their post. To improve SEO, I would like to add Meta Tags to the posts. Ideally, with a light solution ...
1
vote
2answers
585 views

Reordering Buddy Press profile navigation [closed]

I am using this code to reorder the positions of the menu items for BuddyPress profile. I am using the xprofile (not sure if that makes a difference). Here is the code that I am trying to use: ...
0
votes
1answer
65 views

custom fields wordpress

I am trying to add a value assigned in the custom field by doing a post in these following steps: I make a new post, add a new custom field where i specify a name and a value. PHP I add the ...
4
votes
7answers
233 views

Plugin or mod for wordpress to make content publication SUPER easy

Well, im making a wordpress web page for my dad, a psychiatrist, who barely knows how to check his email. He wants to put content regulary but the actual admin interface of wordpress is way to complex ...
0
votes
3answers
553 views

Setting post thumbnail sizes in template file and functions.php

For my post I have a box for the post image and the size of the box is 214 x 73. I want the image to fit the width of the box and have it cropped at 73px height. This is what I have so far in my ...
1
vote
1answer
347 views

stats_get_csv (Wordpress Stats) to only display top posts (not pages)

I'm trying to get the first 10 posts based on page views through Wordpress Stats (now called Jetpack). I managed to get this code to work (approximately..) after digging for hours over the forums ...
-1
votes
1answer
221 views

Adding a content rating system

I run a multiple author site and the content is directed to various age groups. Instead of forcing the writer to manually note which age group the post is appropriate for, I want to add a content ...
0
votes
1answer
121 views

Submenu opened problem

I am trying to fix a problem with a submenu. I have coded (as you can see on jsfiddle: http://jsfiddle.net/8899x/87/ ) my horizontal menu and the submenu. I would like to leave the submenu opened when ...
2
votes
1answer
124 views

Bug in Stackoverflow styled badge system script

I have modified an old Stackoverflow inspired badge system script to work with the latest Wordpress version. You can view the code here (and please feel free to use it if you wish): ...
1
vote
2answers
117 views

I would like to have different styles for my posts based on the content of each post

Here is my wordpress theme to check out(its not completely finished): http://benlevywebdesign.com/wordpress/ This is my first time working with php/wordpress and making themes so keep that in mind. I ...
1
vote
2answers
1k views

Accessing site's root from themes folder

Having some troubles with a PHP script I am trying to build. I need to access the a file which is located in the root folder of my Wordpress install: wordpress-root/live-config.php Problem is, my ...
1
vote
3answers
400 views

Delete post revisions on post publish

Is it possible to delete post/page revisions from the database when a post/page is published? 11/05/12 Answer: See the plugin below by bueltge I want to do this on a site with 5,000 posts and ...
0
votes
1answer
156 views

Migrating site, only header shows

I have copied my file structure to a new server, and exported the relevant tables to an SQL file. I have imported the tables to the new database. When I visit the new URL, only the header of the ...
0
votes
2answers
3k views

Get custom post type categories to show up in menus

I'm wondering how it's possible to add custom post type categories as an option to add as a navigation menu item. What I have: $portfolio_args = array( 'labels' => array( 'name' => ...
0
votes
1answer
177 views

doubled content

I'm taking two templates and molding them into one that suits my needs. I'm getting this weird issue where things are repeating themselves just before the footer. Here's the code: <?php ...
1
vote
1answer
256 views

Echo URL of large version of Featured Image

I use this plugin to echo the URL of a post's featured image in the header: <?php /** Plugin Name: Post Thumbnail FB header */ function fb_header() { // Not on a single page or post? Stop ...
2
votes
1answer
2k views

API JSON Data in WordPress

On the Google developer API page, it talks briefly on retrieving a dynamic list of fonts using JSON/JavaScript. I was wondering how would I be able to pull the web fonts API into my Wordpress theme ...
1
vote
1answer
363 views

Date calculations from 2 custom fields

We are struggling to find a way to calculate a time difference between two dates saved as custom fields on WP. We are actually using two different plugins: a) Easy Content Types b) Advanced post ...
0
votes
1answer
46 views

Adding if statement to content for homepage

I have an if statement already in my loop to display content based on post type. I was wondering if there was a way that I could say to ignore that section if it is the front page/homepage. Here's a ...
4
votes
2answers
851 views

Build a content and excerpt grid loop with paging and options for # of posts

What I'd like to do: on index.php, a loop that shows a selectable number of full posts using the_content and then below that shows a selectable number (the number of posts can be hardcoded in the ...
5
votes
1answer
464 views

Decrease file size upload in Media

By default, I have a 2m limit of uploads. I want to decrease this number. I found out that this code: function custom_file_max_upload_size( $file ) { $size = $file['size']; if ( $size > ...
0
votes
2answers
1k views

Display all posts in current category

I am looking to create a behavior as shown in the following link: http://www.javaexperience.com/java-role-of-serialversionuid-in-serialization/ Here all posts from the same category are being ...
0
votes
2answers
751 views

Displaying custom post type on front page

I added a new custom post type to my Wordpress theme but it refuses to show on the homepage. I tried setting <?php query_posts( array( 'post_type' => array('post', 'reviews') ) );?> but ...
-1
votes
1answer
127 views

Comment section not appearing on posts with no comments

Recently I bought a theme at Themeforest called Ravage for my writing-blog. Yesterday I found out that its not showing the "pretty" comments-section (which has a stylish newsletter sign up form and ...
0
votes
2answers
148 views

Auto 301 to full post permalink? (using : /archive/%post_id% to %post_name% )

I have updated my permalink structure to /archive/%post_id%, but if someone uses a URL like /archive/456857 instead of the full URL of /blog-test, WordPress shows the post without giving a 301 to the ...
2
votes
2answers
1k views

Why can I not use setup_postdata($post) in the sidebar?

I have created a function that takes one parameter - post type, and will output each posts with some html and title, content etc within that. However, I want to be able to use functions associated ...
10
votes
1answer
195 views

Why isn't WordPress part of Framework Interop Group?

Are there any technical reasons that prevent WP to be part of Framework Interop Group?
1
vote
3answers
693 views

Wordpress widget/sidebar dividers?

I have a widget sidebar, but I'd like dividers between them. I can achieve this in CSS using boring borders, but I have a png image I'd rather use instead. Is there a way to insert a divider after ...
1
vote
0answers
90 views

How can integrate zend module with wordpress admin dashbord

I want to add zend application into wordpress admin dashbord with a menu link.I have copy all the application folder files from zend application and create a plugin in wordpress,its working when we ...
1
vote
1answer
179 views

Logged in user ID as post ID

Is there a way to automatically insert the current user ID as the post category name or maybe have WordPress display only the post with a category name that matches the current logged user ID? ...
0
votes
1answer
108 views

Page downloads as file in Chrome

I'm looking to see if I could get pointers in where to look to solve this issue. Issue In Chrome, viewing the blog http://www.bitesizeirishgaelic.com/blog/ in Chrome v21, the page downloads as a ...
3
votes
1answer
295 views

Restrict users from editing post based on the age of the post

How can I restrict users (based on Capabilities) from editing their published posts after a custom amount of time. For instance, a user that can publish_posts (authors) can not edit a their post if ...
1
vote
1answer
82 views

Must I download entire WP directory for each separate instance/website that uses WP?

I'm no noob when it comes to website design or development. And am quite savvy with JQuery, XHTML and PHP. However, I admit I am quite noob-ish when it comes to WP... I already have the WP directory ...
0
votes
1answer
47 views

Tables not showing divs and loop/php items

I know this is an absurd questions, as who uses tables anymore? I got handed this and just need to make it work really. I don't know anything about tables so it's been a learning experience. I ...
1
vote
1answer
317 views

How do I list the_tags() into HTML data-attribute

I'm new to wordpress and trying to make a theme. I'm using a jQuery filter script on a page of posts that filters the posts nested in an unordered list using the HTML data-attribute as a hook in the ...
0
votes
2answers
183 views

Using a string from a custom field within a link

I want to show the image only if there is info in the field. And the link around the image uses the info in the field. The mailto: field is coming up blank. So I'm guessing/hoping I'm doing something ...
0
votes
1answer
45 views

Meta boxes only displayed when editing normal (default wp post_type) posts

I've multiple meta boxes for my main/default post types. I also have multiple post_types where this meta boxes make no sense. Can you hint me on if/else function I would use on displaying meta boxes ...
1
vote
3answers
112 views

How can I hide Home in my menu in a specific page?

I want to how can I hide the home in the menu without setting show_home in functions.php to false, I just want to do is hide it in a specific page. How can I do this? I am using the Twenty-Eleven ...
4
votes
2answers
4k views

Most efficient way to add javascript file to specific post and/or pages?

I am wondering what the most efficient method is to add a javascript file specifically for a post and/or page. Here are a few solutions I came up with: Switch to HTML editing view and post your ...
1
vote
1answer
171 views

How do I translate this string - PHP syntax question

I need some help on how to correctly format this code snippet for translation: <?php next_post_link( '%link', __( '<span class="meta-nav">←</span> Nästa nyhet') ); ?> I've used ...
2
votes
2answers
2k views

Fatal error: Call to undefined method WP_Error::get_item_quantity()

I've implemented a way to show the Twitter feed without a plugin. It's worked for weeks(months even, on a different site), but is now giving me trouble. Here is the error: Fatal error: Call to ...
4
votes
2answers
2k views

How to change upload directory in wp_handle_upload

I am trying to work out how to use the wp_handle_upload function for a custom plugin so that i can specify my own own upload directory. The code so far takes a file from my plugin settings page and ...
5
votes
1answer
1k views

Hide php Notices in Dashboard

When I program a theme, I put WP-DEBUG on. Which ensure a proper PHP code. Sadly most Plugin developers keep using non existing vars : echo $args['title']; Notice: Undefined index: title in ...
1
vote
1answer
164 views

Pass get_option value to an array [closed]

I want to pass get_option value to an array value. This the value that I want to pass to the array. <?php echo stripslashes(get_option('a')); ?> and this is what I am trying to do. <?php ...
0
votes
1answer
49 views

displaying the categories post

I have this php code below for displaying the post from the specific categories. <ul id="sliderx"> <?php query_posts('category_name=slideshow&showposts=10'); while (have_posts()) : ...
0
votes
2answers
567 views

Categories from front-end, checkbox selection doesn't work

I'm using the plugin Post from site, which sets up a WP front end writer. I changed some line of code because I need to select categories with checkboxes and not with a multiple select (as it was ...