All Questions

Filter by
Sorted by
Tagged with
1
vote
2answers
2k views

APC 500 Internal server error [closed]

I have a blog running on a FreeBSD 8.1 system with PHP 5.3.5 and APC 3.1.6. At first everything seemes fine, but after a while (about 18-24 hours) all pages are served blank, and with a status code ...
1
vote
3answers
7k views

Get the term id belonging to custom taxonomy on a custom single-post-type.php template page

I have custom post-type 'sermon' with custom taxonomy 'speaker' attached to it. I wanted to assign custom meta values to the speaker taxonomy, so I am using the taxonomy meta class from Rilwis: http:/...
1
vote
2answers
4k views

wordpress site validation errors

when I made my wordpress site validate I got some strange errors like Error Line 6, Column 52: Bad value profile for attribute rel on element link: Keyword profile is not registered. Error Line 12, ...
3
votes
1answer
5k views

Archive widget - limit number of months to 12

The default Archive widget display monthly archives in a dropdown. I would like to limit the number of months to 12 (in dropdown). What filter I should apply in my functions.php? I tried this, but ...
7
votes
4answers
400 views

How can 2 blogs share the same users

I have a running normal WP blog (blog 1). I want to create a Q&A section for my users, so I setup another blog with WP-Answer theme (blog 2). The problem is I don't want my users at blog 1 have ...
0
votes
1answer
137 views

How to use rewind_comments() - when and how to use it?

I've never messed with the comments loop before, but I'm trying something out here. Basically, I have my comments form in a popup iframe, an ajax action which handles the form submission, inserts the ...
-3
votes
1answer
75 views

styling the contents

I am newbie to wordpress and just started to play with themes. My problem is I want to change the css of the content part and for that I want to know by default the content comes in the blog page ...
1
vote
1answer
782 views

widget dropdown menu code

I'm trying to put in a simple dropdown menu in my widget. I copied one out of a previous widget and trying to substitute my own values into it. The submenu shows, but when I click save, it saves ...
2
votes
2answers
2k views

Have Plugin Handle Specific URLs

Does Wordpress have the ability to use the currently defined template to serve up content in the database? For example, I have a database of a bunch of custom content-- the name of an item, the price,...
3
votes
1answer
673 views

How can I remove or change a border/outline on a picture when it is in a gallery page?

You can see on this page: http://www.middlegray.net/ceremonies/ the photos have a white box that is automatically applied to the pic. I want to take it off or make it a different color. Where would I ...
5
votes
1answer
16k views

How to create a wp_query that contains both meta_query and tax_query

I have a wp_query that works great but I can't have both a meta query and a tax_query in it. <?php $event_query = new WP_Query( array( 'post_type' => 'event', // ...
1
vote
1answer
909 views

Custom excerpt function re-factoring

This may be more of a php best practices question, but here goes... I am using a custom excerpt trim function: function new_wp_trim_excerpt($text) { // Fakes an excerpt if needed global $post; ...
3
votes
1answer
3k views

Can shortcodes contain conditional statements? Even without them my shortcode renders blank page

The following code is supposed to allow for a shortcode that includes many attributes, but not all of the attributes may always be present in which case I do not want the containing element to show ...
17
votes
4answers
7k views

Limit number of Widgets in Sidebars

If I use a custom widgetized area (for example footer) where there is only a limited number of spots for widgets (by design), can I limit the number of widgets the user may include in that specific ...
1
vote
2answers
3k views

Forum plugin with private forum option

I'm in need of a forum plugin for Wordpress that has an option for a private forum that is only accessible (both for reading and posting) to registered users. Restricted posting appears to be de ...
2
votes
3answers
3k views

How to: get main plugin/theme file?

There're the functions get_theme_data(); & get_plugin_data(); - which both use get_file_data(); that needs a specific file as $input. I got a set of classes that may be used by a plugin or a ...
1
vote
1answer
1k views

Custom Theme Design: do I need to “enable” jquery/javascript libraries?

When I build a theme from scratch I have to "enable" sidebars and specific menus in the functions.php. Similarly, do I need to "enable" access to the javascript and jquery libraries that come bundled ...
2
votes
1answer
141 views

Pings and replies

If in a theme for WordPress comments were separated from pings, would it makes sense to keep the option of reply to them in the discussion? (ie visualize the reply link for pings too). Thanks for ...
1
vote
1answer
1k views

Is there a way to set the default active tab on Post UI Tab pluggin?

We've started using the Post UI Tabs pluggin but would like to be able to arbitrarily set the tab that is active when the page is loaded. For instance, in one example, we have a three-week process, ...
1
vote
1answer
2k views

vimeo/youtube video embed with thumbnails

Is there a way to get wordpress to embed Vimeo, YouTube videos like tumblr with a thumbnail and then to play without the player buttons? examples - http://ascender.tumblr.com/ http://swell-theme....
2
votes
1answer
376 views

Find most recent authors

What I'm looking to do it get the 16 latest posts from 16 different authors. In other words there would be the 16 latest posts, but no one single author would have more that 1 post on the page. The ...
1
vote
2answers
431 views

Display both standard posts in a specific category along with a custom post type in a single loop?

I'm building a content slider that needs to show posts from a custom post type called "Features," and also show standard blog posts that are assigned to a "Featured" category. I'd like to do this ...
1
vote
1answer
647 views

Error : “Language is already enabled or invalid! ” in wordpress plugin qTranslate [closed]

When trying to enable newly added language in qTranslate Configuration ** I get a message **Language is already enabled or invalid! All the languages that come with qTranslate are ok. Wordpress 3.13 ...
3
votes
2answers
713 views

User roles - enable custom posts disable posts

Im just wondering if its possible to create user role that allows to write/edit custom post type for example: Consultants, but not allow to write normal posts (used for as news for example). I know ...
0
votes
1answer
157 views

Getting lots of errors with sitemap on google webmasters

I use the Google XML Sitemaps (Wordpress Plugin) and the latest wordpress version. Recently i have had a lot of 404 not found errors in webmasters. The urls show up without any categories and it links ...
1
vote
1answer
141 views

Page is displaying blog archives

I've been playing around with the jquery plugin Fancybox on this page, but for some reason since making a few changes my page seems to be displaying blog archives rather than the normal content it ...
1
vote
1answer
93 views

How to redirect http://mydomain/blog/blahblah/ to http://mydomain/blahblah/ in wordpress htaccess?

I would like the htaccess rewrite rule to compare to IIS rewrite rule I tried which doesn't seem to work: <rule name="rewrite /blog/"> <match url="^blog/([_0-9a-zA-Z\-]+)/$" /> &...
0
votes
1answer
4k views

How to get the value of particular get $meta value in wordpress

I am using this wordpress Script to add metaboxes under posts.. I followed as it was written.. but I am having trouble on how to get those values in singe.php Example an uploaded image Please guide me ...
3
votes
3answers
6k views

How to find attachment ID for first image in a post

I am using a plugin to forward photo posts from wordpress to a tumblr blog. I have the following code: //post blog to tumblr function postBlogTumblr($postID) { $URLServer = "http://www.tumblr....
0
votes
1answer
544 views

Alternative to email notification system?

Instead of having an email on every comment on a blog post I've wrote, I'm looking for a visual notification on wordpress itself, an "inbox" if you get what I mean. Does that exist? Thanks, Dennis
1
vote
1answer
207 views

Metadata Query when storing data as array possible?

Suppose I store all my post meta data in an array like $meta = array( 'img' => '', 'caption' => '' ); update_post_meta($post->ID, 'theme_banner', $meta); Can I query posts where ...
0
votes
1answer
189 views

How do I exclude main pages and link only to sub pages?

I have read the following but I'm still confused http://codex.wordpress.org/Function_Reference/wp_list_pages At my website http://alluvialtrading.com/ I would like for example "Who We Are", "What ...
1
vote
1answer
440 views

Is there a need for nonce with Post Metabox?

I looking at the docs for add_meta_box. They used a nonce. wp_nonce_field( plugin_basename( __FILE__ ), 'myplugin_noncename' ); I am wondering, probably the save post form itself should already ...
2
votes
2answers
3k views

Custom Post Type with Custom Title

I have a custom post type without title support and I'm trying to generate one from post's taxonomies and custom fields. To do so, I'm using this code: function custom_post_type_title_filter( $data , ...
1
vote
1answer
279 views

Plugin - Social media share buttons

Is there a plugin with the social media share buttons where I have more control of where to place them? At the moment, the only one's I can find only allow you to place the buttons at the top or ...
1
vote
1answer
67 views

Does WordPress validate inputs to all functions? (such as get_user_meta and insert_user_meta)

Does WordPress validate inputs made to all built-in functions that access the database to protect against SQL injection vulnerabilities or do we have to validate before passing them?
2
votes
1answer
2k views

How to upload images using Settings API

I want to allow users to upload images for use in a rotating banner. I tried using the media library, but didn't get much help ... So I thought, I'd just implement the upload myself. But I encountered ...
0
votes
1answer
948 views

Trouble passing attribute into shortcode function

For some reason the WP_Query instance in my shortcode function won't take the query attribute sent from the shortcode. The shortcode is like this: [postlist query="post_type=any&posts_per_page=5" ...
46
votes
2answers
22k views

Create more Meta Boxes as needed

I'd like users to be able to create and remove additional meta box fields as needed. For example, say a music podcast with a variable amount of songs played per episode. The user should be able to ...
0
votes
2answers
2k views

Changing 'rewrite' argument after custom post type is registered [duplicate]

I'm am attempting to change the rewrite argument after it has been defined and passed as an argument for 'register_post_type' in a plugin. My issue is that I am utilizing a plugin that defines a ...
3
votes
0answers
761 views

How can I get an image from the uploads dir and enter it in the media library? [closed]

I want to develop a script that: Gets an image from a post's content and removes it (it's hosted on another website) Uploads it in the uploads directory Adds it in the media library and Lastly ...
5
votes
1answer
2k views

Multiple ajax nonce requests

I have a feature in my current project that will be allow multiple ajax requests - I've got a single nonce request worked out (via this tute), but am somewhat unsure how to figure in multiple nonce ...
2
votes
3answers
2k views

Hide “Gallery Settings” and “Insert into Post” button from Attachment window

I'm using different method to form a gallery in Wordpress, so I would like to hide an option to insert images and galleries into post for anyone but Administrator. Can someone show me an example how ...
3
votes
2answers
3k views

Is there a plugin to display certain posts on certain pages? [closed]

On the homepage I want to display the latest 4 posts from the 'news' and 'events' category, whereas on the events page, I just want to display all posts in the 'events' category in WP's usual ...
2
votes
1answer
81 views

Looking for the code in twentyten that allows users to select images for the header/banner

I am looking for the code that renders the below page. Where can I find it, it does not appear to be in functions.php? I want to learn how they allow users to upload images
3
votes
3answers
488 views

How to wrap admin menus and menu headers in additional divs without modifying the WordPress core?

I need to do this to enable advanced styling options via css, the one a class the headers are wrapped in isn't adequate to do the type of styling needed. Thanks!
1
vote
1answer
148 views

how to put functions inside of widgets

I'm trying to put my own function in a widget but it doesn't run. I want to use it everywhere within the widget. If I could see an example,that'd be great.
1
vote
1answer
118 views

Can't sort Posts in wordpress Dashbaord

I'm using WordPress 3.1., and I can't sort the posts in the Dashboard/admin area by date or post title. Edit: i just noticed it only happens with this theme im using, how could this be fixed?
2
votes
1answer
909 views

problem using WP_Http with paypal nvp api

trying to convert a plugin I wrote to use wp_http instead of Curl (so it'll work on servers without curl) the plugin posts to paypal nvp api and gets back an encrypted button when I try to use the ...
18
votes
1answer
5k views

what is the correct way to update a plugin via tortoise svn to the repository?

I'm embarrassed to say that I am a bit clueless on the procedure used to update a plugin via tortoise svn even though my plugin has been on the repository for years and had over 300,000 downloads! ...

15 30 50 per page