All Questions

Filter by
Sorted by
Tagged with
4
votes
1answer
1k views

Manipulating Media uploader

Ok. Going to try and explain this as best as I can, so bare with me. Anyway, I'm trying to include the default media uploader as a part of my plugin. Currently, I've successfully managed to use the ...
1
vote
1answer
205 views

Plugin to restrict login and unpublish content from an author

I am looking for a plugin or a code that will allow admin to select an author and "ban" him from logging in the system and also to unpublish his posted content until the admin decide to allow the ...
3
votes
1answer
646 views

Make individual attachments private?

Is there any way to make individual attachments private similar to how a post can be made private? I've looked through various plugins but none really seem to do the job. They usually make all ...
2
votes
3answers
289 views

display order of connections

Is there a way to control the order in which connections are displayed ? I've got a Articles => Books connection so that in each article I can quote a number of books. I want to display the quoted ...
2
votes
1answer
512 views

Help with wordpress custom query and advanced custom fields plugin

first of all sorry for my bad english. Let me explain what I`m trying to do: I have a column inside a SQL table with a string using the following format: yy-mm-dd The thing is, it doesn`t use a ...
1
vote
1answer
2k views

Filter all queries with a specific taxonomy

Is there any way to filter all post queries and add a specific taxonomy? Case in point, I have a taxonomy object of "Region" with terms like "Global", "Americas", "Europe", etc. (Users designate ...
1
vote
1answer
2k views

Filter my home page posts by category or by tag

Would like to filter my home page posts by category OR by tag. i.e. only posts that are in category "X" or have tag "B" appear on the home page. Have used code below successfully to filter (include/...
1
vote
1answer
228 views

Is there a way to hide WordPress behind a web visible directory?

Is there a way to hide WordPress behind a web visible directory for extra security using a symlink?
1
vote
2answers
165 views

Mechanism to send to users of secured WordPress install new notifications by SMS or email?

I have a family website, private, requires a WordPress account, in WordPress. Some of my family members would like to get the option for notifications of new posts by email or text message. Email ...
6
votes
3answers
1k views

Splitting WordPress theme CSS into multiple files, good or bad?

I'm developing a WordPress theme framework. I want organize CSS for each section into separate files for the following reasons. Developers can easily deregister styles by parent theme and load their ...
0
votes
2answers
397 views

wrap text around custom fields array

I'm using this code here to grab all my custom fields from a post for use in an gallery array. http://www.kevinleary.net/get-all-custom-fields-attached-post-page-post-type/ function: // Get all ...
3
votes
2answers
2k views

Post visibility on the basis of roles

How to make a post visible to only: The post author, irrespective of its user role. All users from a specific user role. Other then these, no one should be able to see the post. How should I ...
2
votes
1answer
392 views

Populating a page with content from post custom fields

I'm doing up a blog at the moment where each post is accompanied by the name of a song. Adding the songs to the posts is fairly easily done via custom fields. However, I also need to have a page ...
2
votes
2answers
424 views

[Plugin: Posts 2 Posts] reciprocal connections

I'm using Posts 2 Posts plugin. I've got 2 custom types : movies and actors. I created a movie => actor connection so that for each movie I can see which actors play in. But as far as I understand, ...
7
votes
1answer
1k views

Make a really simple gallery structure

The default gallery structure of WordPress is really tortuous: <div id="gallery-1" class="gallery..."> <dl class="gallery-item"> <dt class="gallery-icon"> &...
2
votes
1answer
321 views

Server crashed trying to restore wordpress multisite, images are not found pls help

I had an issue with a server that was serious enough to have to take it completely offline and then rebuild the os. I have gotten to the point where the new server is up and running. I have managed ...
3
votes
1answer
1k views

Too much recursion error when chosing image from image library for two different meta boxes in one post

There must be a solution for this. I am using this solution for chooosing images from media library. http://www.webmaster-source.com/2010/01/08/using-the-wordpress-uploader-in-your-plugin-or-theme/ ...
2
votes
1answer
160 views

Seperate WordPress catagories into sepeat list on seperate pages

Having issues showing my post in separate list based on category I have a static home page set my page: "home" and I have the blog set to my page: "Inspiration" I have 2 main categories "inspiration"...
2
votes
2answers
3k views

plugin_action_links Filter Hook Deprecated?

http://adambrown.info/p/wp_hooks/hook/plugin_action_links_%7B$plugin_file%7D Says the hook is deprecated. However, the {$prefix}plugin_action_hook_{$plugin_file} is not. I poked around the wp-admin/...
3
votes
2answers
147 views

what's meaning of it when submit a theme?

REQUIRED: Comments are displayed as "Off" while they aren't in wp-admin. Comment form is not displayed in these cases, while it is when a unit test post already has comments. i have installed the ...
3
votes
1answer
238 views

Is email post notify visitor on new media upload possible?

Is there a plugin or snippet that would: Add an email input form to each post Send a predefined message when new media (or attachments) has been uploaded for that post only The requested ...
4
votes
1answer
306 views

Help with a TV series Rewrite structure

Not sure if this is possible, but bear with me. I think I am halfway there. First a little background: I'm using the build in hierarchy in WordPress to form relationships between post types. I ...
3
votes
4answers
2k views

Separate attachment images from post loop

I'm trying to create an array of images for a slideshow gallery script, so need to separate the images from the post loop - any ideas of the best way to achieve this and make it easy to add images? I ...
4
votes
3answers
2k views

Broken wordpress permalinks on pages only

Not sure when it happened but the custom permalinks for pages on my client's Wordpress site have broken. I can fix it by reverting back to the default permalinks and then using the custom permalinks, ...
2
votes
1answer
1k views

pagination with sticky posts

The following code displays 8 posts on the 1st page. On all succeeding pages however, only 7 posts are displayed. I am assuming this is because the 1st page also displays sticky posts (whereelse the ...
5
votes
5answers
1k views

Comment visibility

There will be many people commenting on a post. So, when a commentator visits the post, he should be able to see 'only' his own comment(s).Post author can see all comments only on his own post. How ...
4
votes
1answer
484 views

How to call the_excerpt() with tags or the_content() as an excerpt?

Is it possible to call the_excerpt() with tags intact? I'd like to create a excerpted listing of my posts in a specific category, but I'd also like the links and formatting carried over from the post ...
2
votes
2answers
862 views

When using get_categories or similar, is it possible to filter results that contain certain Tags as well?

get_categories() and related functions, by default, don't return empty categories - categories with no posts. I thought that, since there may be some underlying code checking the post counts, is it ...
3
votes
1answer
2k views

List posts from Custom Post type with hierarchy?

I have a custom post type that is set to have hierarchy. I'm trying to create a list of posts in that post type that display's that hierarchy using nested unordered lists. I have this post structure: ...
2
votes
1answer
6k views

Function to show random posts from a category

Hi to all I'm trying to create a function that can ECHO the excerpt of a random post from a choosen category. What I did up to now is: <?php function $titoloslide() = { query_posts(array('orderby'...
1
vote
1answer
4k views

How to make the excerpt_more filter apply to the actual post excerpt?

In the get_blog_excerpt() function below, the excerpt_more filter works perfectly when the post excerpt is not present, however, when the post has an excerpt, I'm not getting the "Read More" link. I ...
1
vote
1answer
211 views

How to obtain a reference to the_excerpt() from custom loop

I have a script in archive.php, which is outside the loop, that calls on the function get_blog_links() to list all posts that belong the the current category (my "blog" category). I'm trying to do ...
66
votes
6answers
88k views

What's the difference between home_url() and site_url()

My understanding is that site_url() returns the location where the wordpress core files are. So, if my blog is hosted at http://example.com/blog then site_url() returns http://example.com/blog But ...
1
vote
1answer
512 views

Need category header to link to category archive list

I tried using wp_list_categories, but that just gives me a list of the categories. I currently have this code in my category-recipes.php file: <ul class="subcats-list"> <h2 class=...
2
votes
2answers
142 views

Registered but Anonymous comments

Is there a way / set of plugins that could enable discussion where each commenter is 'authenticated' with the site (via openid/fb/twitter/etc) but the commenter can still use a anonymous/fake name? ...
0
votes
2answers
102 views

Leveled - Terms foreach

I need to build a php foreach that goes through all my terms in my custom taxonomy 'Section'. I know how to get a foreach of all the terms in 'Section', but what i cant do is build it with levels. I ...
1
vote
2answers
761 views

cannot get multiple loops using tax_query

I am trying to get three loops to display. they all belong to the same post type and the same taxonomy family. but i'm trying to separate the taxonomy by three different values. $argsOwners = array( ...
1
vote
1answer
809 views

GET parameters interfere with my plugin settings

I have my plugin all set-up using the Settings API and working but what I have is two manual functions in my plugin that can be run by the admin user by visiting the following URL's <?php echo ...
2
votes
1answer
5k views

Is it possible to link to draft pages?

Problem: I have a overview-page with a sub-page. Both pages are still in status "draft". Now I want to create a link on the overview-page to the sub-page, a popup appears, but in the list of internal ...
3
votes
1answer
1k views

importing data from non-wordpress mysql db

I have created an import file to get the articles from a non-wordpress db and bring them in as posts in wordpress, I am not sure how to bring over the thumbnail image into my custom field I defined as ...
1
vote
4answers
2k views

Wireframe tool for WordPress theme [closed]

I want to develop a WordPress theme from scratch. Is there any wireframe tool in which I can design the a complete page and it exports the html/php file against it. I want a free tool.
2
votes
1answer
2k views

Server side validation for Contact Form 7 [closed]

I'm trying to use contact form 7 on my site. The only server side validation that it seems to do is check if required fields have been entered. Isn't there a danger if someone sends several MB of ...
1
vote
3answers
3k views

How to convert multi-site to single site

I need to take a site that is installed as a subdomain blog on a multi site install and move it to it's own domain on a standalone wordpress installation. How can this be done? I am running into ...
1
vote
2answers
354 views

How to show cutom post labels in options?

I have this code: $args=array( 'public' => true, '_builtin' => false ); ?> <select id="<?php echo $this->get_field_id('posttype'); ?>" ...
0
votes
1answer
2k views

How to use wordpress plugin functions on my “home” page?

The problem I am facing right now is, that I can't use functions provided by wordpress plugins on my "Home" page. To be precise: I use wordpress together with the wp-e-commerce plugin, which has no ...
0
votes
1answer
104 views

[Plugin: WordPress.com Stats] Javascript not being added to footer

If you view the source code on my website, loneplacebo.com, you'll notice that only the comment <!--stats_footer_test--> is shown above the . The plugin doesn't seem to be adding the necessary ...
3
votes
2answers
4k views

How to create a public profile for authors/contributors/users?

I would like to add a public profile page to the authors and others contributors in my site. where visitors can see their profile info. I don't wanna use Buddypress, is it possible with WordPress ...
1
vote
2answers
549 views

Placing post data (title, date, and excerpt) nested in static content

I apologize if this is a newbie question, but I am very new to working with WP template files. I am working on a campaign site (that I unfortunately can't show you before the launch in a couple weeks)...
2
votes
3answers
11k views

How to change “wp-admin” to something else without search-replacing the core?

for example: foobar.com/wp/edit instead of foobar.com/wp/wp-admin How would I do that? I've tried using this in htaccess but it won't work: ##### ABOVE THIS POINT IS ALREADY INSERTED BY WORD PRESS #...
1
vote
1answer
286 views

How do you allow users tag a photo

I have created a collectible site and want to allow registered users tag a photo and add it to "Have List" a "Wish list" or a "Want list". I would like for the user to be a ble to see the photos ...

15 30 50 per page