3
votes
2answers
4k views

How to delete outdated, wrongly sized images in _wp_attachment_metadata?

I've got several custom image sizes for my blog. One of these is setup as add_image_size( 'slide', 640, 290, true );. These are used in a header slideshow. My problem is I've upped the dimensions of ...
3
votes
2answers
140 views

Is there any way of copy/pasting, duplicating, or auto-generating posts for fast testing?

I always find myself creating posts every time to test layout or design. For example, I create stuff like: Content 1 Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam ...
2
votes
1answer
840 views

Last comment page first with full number of comments?

I use paged and threaded comments with: 10 comments per page the last comment page first the newest comments first If there are 21 comments total, the first page only contain 1 comment - the ...
0
votes
4answers
263 views

Is there a good Q&A platform to integrate into WordPress?

I think my audience is more capable of answers each others' questions than I am. I need a system for them to do that and I'd like it to integrate with WP so I could use their existing usernames and ...
4
votes
4answers
236 views

Can i do plugin commits directly from a plugin folder inside an installation using the Trunk SVN

I have several virtual hosts setup, three of them pull files via SVN when needed(though only the trunk folder actually needs this), using SVN for other versions make for easy patch creation, or easy ...
0
votes
3answers
514 views

Why doesn't this page query work?

This should be easy. I need to query to display one page in a tab. Just pull one page by one query, but I'm doing something (maybe lots) wrong here: Edit: Hah. I forgot the_content It works now. ...
0
votes
2answers
1k views

Wordpress function when file is uploaded, deleted or edited

I need to call this bit of PHP when a file is uploaded, deleted or edited. $output = shell_exec("bash ./upload.sh"); echo $output; I can't seem to find the right code to execute this when any of ...
0
votes
1answer
237 views

Any insights into Transient API locking, cron and threading?

How does one go about locking down transient API requests for multiple threading? Has anything done some benchmarking, just how much can the transient API handle for multiple concurrent requests? It ...
3
votes
1answer
4k views

adding a filter to a shortcode?

<?php echo do_shortcode('[mingleforum]'); ?> inserts the mingle forum into my content! is it possible to use add_filter() on that?
0
votes
2answers
2k views

PHP nested If statement syntax

Hiya Guys! so I need some help with this: <?php $newsposts = new WP_Query('cat=restaurant'); if ( is_front_page()) { echo '<h3 class="member-review">Latest ...
16
votes
6answers
23k views

remove empty paragraphs from the_content?

Hey guys, I simply want to prevent the creation of empty paragraphs in my wordpress post. That happens quite often when trying to manually space content. I don't know why this doesn't take effect? ...
0
votes
2answers
2k views

Save Theme Options (options.php) From The Frontend

I try to save an option from the frontend but i can't find yet how to do it. So, the idea is to give the blog owner a simple form with a dropdown that can select a different stylesheet.css. I have ...
4
votes
2answers
187 views

Where do I start from

I'm student web developer and I'd like to know the things I should know before venturing into WordPress. Where do I start?
0
votes
1answer
312 views

Proper procedure for wp_insert_post?

I just found the magnificent wp_insert_post function and have a few basic question about it. *For reference I used this on a multisite install for a number of blogs running theme_x. I simply wanted to ...
0
votes
1answer
391 views

can I 'combine' categories as a menu item?

I have custom post type and I want to have a menu where I combine category or categories from default Wordpress post type and from my custom post type. Let's say I have these categories sport, ...
6
votes
1answer
2k views

What plugin can I use to create a list / slideshow of featured images?

I'm looking for a plugin that will allow the user to upload files, maybe 4-10 that can be used on the homepage as part of a slideshow. I can code the slideshow part myself, if necessary, but the thing ...
1
vote
2answers
442 views

Main menu - get rid of titles?

I've got a default main menu: wp_nav_menu(); But it gives a list of links in a form: (...) <a href="link" title="PageName">PageName</a> (...) The very important question is, how to ...
0
votes
2answers
779 views

Don't display post if post has empty body

I have a custom post type sites registered via register_post_type and my front page displays my latest posts. Including posts from sites. Is there any way I can set it up so that posts from sites ...
0
votes
1answer
449 views

Hide/disable sidebar using shortcode?

The question is pretty simple, but it's complex in fact. I have implemented custom sidebars for each post/page function in my blog. It looks like: <div id="<?php echo ...
0
votes
3answers
974 views

Escaping Quotes

For some reason when i try to put like a embeded video my video has slashes inside the code, but if I add it in the template itself then the code is fine i was told its "escaping quotes" anyhow this ...
1
vote
1answer
216 views

get_bookmarks filter not supplying query argument (wp 3.1)

I'm using a filter on the get_bookmarks function. When I use two arguments in my filter function I get the result array and nothing for the second arg (it should be the parsed query). Here's what I'm ...
4
votes
2answers
5k views

query_posts() in function makes global $wp_query out of sync?

This has me stumped for a while already. Either I am missing something very obvious or something very not obvious. I am also not entirely sure if this has something to do with WP or purely PHP ...
0
votes
1answer
451 views

jquery bookmark links

I got social bookmarks in jQuery, but how can I get post titles and permalinks in this snippet? If I put <?php echo get_permalink(); ?> in there, the whole site gets blank. ...
1
vote
2answers
10k views

My wordpress site gets redirected automatically to the old site any known solution for this?

I had recently moved my wp site from a domain to other, but when I type in the new domain's address it gets redirected to the old domain/some_page. Is this any common problem? Is there any known ...
1
vote
1answer
418 views

How to remove the Unattached filter on Media Library List?

For example, at /wp-admin/upload.php are displayed the following filters by: All (6) | Images (6) | Unattached (6) How can I remove the "Unattached (6)" filter by? Thanks in advance.
0
votes
1answer
591 views

looping though custom post types and only return results in a given taxonomy

I am creating a WordPress theme for a record label. One aspect is the video gallery. I created the gallery using a custom post type called 'videos'. The code below is what I placed in my ...
5
votes
2answers
5k views

How to add multiple buttons to TinyMCE?

I've followed a tutorial on Nettuts on how to add a custom button to TinyMCE (http://net.tutsplus.com/tutorials/wordpress/wordpress-shortcodes-the-right-way/) It works great and all, but i want to ...
1
vote
1answer
3k views

WordPress Hook for user register

how can I tell WordPress, that if a user registers, it shall execute my function?
0
votes
1answer
230 views

Post navigation using date

On my site: www.finmand.dk/almastofa/nyheder (a danish site) I have used this code to navigate between the post: <?php foreach(get_the_category() as $category) { $thecat = $category->cat_ID; } ...
0
votes
2answers
3k views

Theme requires allow_url_include = on in php.ini

I don't even know where to start with this one. I'm using a theme that requires me to override server php.ini settings in my own php.ini with allow_url_include = on That setting at very least seems ...
0
votes
1answer
446 views

Force modified contributor role to be re-approved on edit?

I gave the Contributor role edit_published_posts capability. Contributor submits a post, Admin publishes it. Now Contributor can edit it without approval. Is there a way to force it to be re-approved ...
2
votes
1answer
816 views

How to add multiple checkbox elements to media attachments?

Based on solved question from: How to add a checkbox element to attachments editor with example Theres an example of multiple Checkboxes, for example: Colors, patterns, etc... A grouped list but ...
5
votes
3answers
2k views

Is there a way to add another row to the tinyMCE kitchen sink toggle?

The tinyMCE "kitchen sink" toggle button shows/hides a row of buttons. I have successfully added my row of shortcode buttons to the tinyMCE editor, but I was wondering if there was a way to make my ...
1
vote
2answers
371 views

Add function to Simple Twitter Connect to not Tweet pages

How would I add the capability in Simple Twitter Connect (in the stc-publish.php file) to not tweet pages, either newly published or edited? I don't need it to be an admin option, just a change for a ...
1
vote
1answer
65 views

How to determine if a plugin affects your file-system

Anyone have a tried method of testing plugins to determine whether or not they make changes to your file-system, database, or both? I think this would be useful for larger websites where files may be ...
10
votes
4answers
186 views

What do you think about custom designed plugin/theme options UIs?

You probably noticed the trend of making custom designed plugin/theme options UIs, especially in the commercial ones (on CodeCanyon for example - custom boxes, tabs, accordions etc). I personally ...
0
votes
2answers
1k views

Exclude category to “the_breadcrumb” functions

(sorry for my english) in my theme I Breadcrumbs function. I would like to exclude the categories, can you help me? here's the code: function the_breadcrumb() { global $post; if (!is_home()) ...
1
vote
1answer
404 views

remove inline scripts from the_content() produced by plugins?

hey guys, any idea how I could filter all inline javascripts from the content()? thank you
2
votes
1answer
1k views

Add “Page Revised” column to Admin

How would I go about adding a column to the Page Admin area that would show the last revision date of all pages? Alongside the Author and Published Date columns? I need to keep an eye on the page ...
0
votes
3answers
2k views

Variable from a plugin into a theme

First plugin, basic question... I am trying to print the variable $xavi from a plugin into a theme like this: add_action('init', '_load_options'); function _load_options() { global $xavi; } So ...
0
votes
1answer
81 views

Category “same post” retreive and display

I have made a multiple category. Each item belong to one or more category. So when display one item, i like to retreive the category of this item, and display all post that have belong to that ...
2
votes
4answers
1k views

WordPress 3.1 removing 'category' from the slug

Is there a way to remove 'category' from the slug when viewing posts in a particular category in WordPress 3.1 without it breaking? My client is asking me to remove it, but it seems necessary - I get ...
1
vote
1answer
6k views

Query Custom Post by Taxonomy Category

i hope you are well today, My question is just breif i am trying to query from a custom post type by a certain taxonomy only; to keep it streamline lets use the below as an example; Custom Post ...
3
votes
2answers
401 views

Sync my svn repositories

I use my own svn repositories for all my development. I am looking for an easy way to keep the svn repository wordpress provides for my plugin synced up with my own internal repository. The desired ...
1
vote
2answers
751 views

Hardcode a Plugin into theme

Hi im looking at hardcoding a wp plugin into a theme, the plugin is Calendar. This is what i have done as of yet: 1) Moved files from wp-content/plugins into a folder within theme folder and made ...
-3
votes
3answers
234 views

How to “Custom Post Type” as a non-programmer?

I need to create a Wordpress Custorm Post Type with the following fields, I am not a developer and would appreciate a cut and paste. The Fields are: Contact Person, Address, Telephone, Cellphone, ...
0
votes
1answer
486 views

Disable all admin UI access to authors (except to custom post type add, edit and modify)

I just created a custom post type named Catalog. Where authors can create as many entries they need. But I need to restrict/deny access to all admin parts: Posts, Profile, Media or other admin parts ...
0
votes
3answers
1k views

What hooks to hook onto for automatic cache clearing

I have a WP-site with not that many writes, but quite a few reads and a few specific hotspots in the templates that I'd like to cache pretty aggressively with my own PHP-caching mechanism. I could ...
2
votes
1answer
765 views

How to resolve scheduled posts that say “Missed Schedule”

My future posts are getting "missed". They are not getting published on the time they should, and it says "Missed Schedule". I read somewhere that it could be a server issue, so how can I fix it?
9
votes
6answers
7k views

How to *remove* a parent theme page template from a child theme?

I'm using the TwentyTen theme to create a child theme, but I can't seem to get rid of the 'One column, no sidebar' page template that is in the TwentyTen parent theme. I thought just copying it over ...

15 30 50 per page