All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
909 views

Extending AZIndex plugin to use custom post types and custom taxonomies

I desperately need to be able to display something exactly like this: http://bottlesup-07112011.31two.com/bottlesup-retailers/ 5 columns of custom post type posts sorted alphabetically by custom ...
3
votes
2answers
622 views

Is it possible to use wordpress.com with a custom domain without switching nameservers?

I want to move my blog to wordpress.com but I do run my own nameservers and I need to do it. Is it possible to use wordpress.com pointing the IPs of the hostname to it but not switching the ...
2
votes
2answers
8k views

Wordpress Redirect based on the prescence of a cookie

I have a tricky situation.... I'd like to check for a cookie. If it doesn't exist then then redirect to an internal wordpress page, and set a cookie. And then carry on browsing the site. But i get ...
0
votes
1answer
196 views

Is it possible to add an argument to a custom function added to a filter hook?

Example: I'm trying to modify an instantiation of WP_Query by using the posts_orderby filter like so: add_filter('posts_orderby', 'favorites_orderby'); $new_query = new WP_Query($args); ...
0
votes
1answer
705 views

Add a checkbox in Media Upload window

I'm developing a theme and want to put an internal gallery. Do not want to use all photos uploaded to the media library. I want to create a field (checkbox) so you must select which of these photos ...
1
vote
1answer
417 views

Can you create a local wordpress network / multisite install on a mac with subdomains?

Is it possible to create a local wordpress network install on a mac (10.6) using mamp with subdomains? I have tried following some instructions I came across while googling, but apache seems to get ...
0
votes
1answer
68 views

Plugin that will let me specify a number of image sizes?

I've designed a grid-based portfolio theme for a photographer; for each portfolio item, I need six different images, all of which have a fixed size. However, no two sizes are alike. Is there a ...
-2
votes
3answers
210 views

Plugin: Custom menu item problem

I'm using the following snippet to add a menu item: <?php add_menu_page( 'Foo Server', 'Foo Server', 'manage_options', 'foo-server', array('Class', 'method') ); ?> Fine, it'...
0
votes
1answer
92 views

Unable to browser posts in categories

Hoping someone can help with this. Clicking on a category either returns a "not found" error, or opens a random post in the category. Verified that the issue is independent of a plugin or theme. ...
0
votes
1answer
244 views

Querying multiple values from a single key

Bainternet assisted me earler with the relation AND parameter. What I need to do now is determine how to query multiple vales from a single key. If I try to specify two arrays with the same key the ...
1
vote
4answers
1k views

Is there a way to check which template file is being loaded, if it is not a page template file?

I don't see any way of testing which template file is being loaded, if the template file is not a page template. Otherwise I would use is_page_template(). For instance, I am using a home.php template ...
36
votes
6answers
34k views

wp enqueue inline script due to dependancies

Is there a way to use wp_enqueue_script() for inline scripts? I'm doing this because my inline script depends on another script and i would like the flexibility of inserting it after it's loaded. ...
0
votes
1answer
216 views

Query post types with multiple keys

I'm looking for a way to only show posts results that contain all of the custom fields requested. Not one or the other. I was only able to get results with one array at a time. Any help would be ...
9
votes
1answer
9k views

How are bulk actions handled in custom list table classes?

I'm working on a custom data table to display in the WordPress dashboard. The table populates from a database table I built in a plugin. I've been using the provided WordPress Custom List Table ...
0
votes
1answer
670 views

wp_redirect not working when going to www version of site

The following function works perfectly when logged-in visitors go to http://sitename.com, taking them to the site homepage. When logged-in visitors go to http://www.sitename.com, however, they're ...
1
vote
1answer
2k views

Sync User to cPanel webmail?

I have a client who's site is built using WordPress. The account is using cPanel with webmail accessible at domain.com/webmail. They have 2 email accounts setup (user1@domain.com and user2@domain....
0
votes
2answers
260 views

PHP or JS for header image rotator?

I'm working on a site that is using this PHP script to load a random header image every time it reloads. I would like to use Javascript instead to allow the browser to cache images and improve load ...
1
vote
3answers
665 views

Two-step login process - Is it possible?

Is it possible to do the following with Wordpress (without hacking too much code - I would like to make this a general plugin using simple hooks)? Log in with the username/password. If username/...
2
votes
4answers
324 views

Timthumb script being compromised - What precautions to take? [closed]

Read an article about Timthumb script being compromised making WP installations vulnerable. Source here Taking a look at timthumb.php, There is the following function, which I presume is the culprit. ...
0
votes
1answer
74 views

Is there a way to figure out which action/filter invoked a function?

I'd like a lightweight way to figure out what is invoking a certain action in an effort to provide logic for certain scenarios where I can't help to avoid a function invocation (for example, a new ...
1
vote
2answers
412 views

Create a month by month archive of pages (not posts)

Is it possible to create a month by month archive of pages? I know it can be done with posts but I want to do it with pages. I want it to take the date the page was published so if the page was ...
0
votes
1answer
1k views

split wordpress loop into columns of categories and associated posts

Here is what I need to do with 5 columns on the "archive" page: I can already loop through the categories and posts in a loop to display them quite nicely, I just cant figure out how to split it into ...
0
votes
1answer
203 views

When I click a custom menu link, how do I make it update the URL in the browser to the external link?

I have created a "custom link" under Menus. The problem is that URL in the browser retains the Wordpress URL ( http://blog.tabsonrahm.org ) instead of the linked URL ( http://tabsonrahm.org/about ). ...
4
votes
1answer
14k views

List page for custom post type?

I have created a custom post type in wordpress and have 90% of the functionality working correctly, but I am having a bit of trouble trying to create a custom listing page template. Currently it is ...
3
votes
1answer
2k views

Slugs as breadcrumbs for Pages

I´m trying to create a function that creates a breadcrumb trail of Page slugs outside of The Loop. These breadcrumbs show the path from the homepage to the current (sub)page. For example, on the ...
3
votes
4answers
8k views

Simplest way to add a second html editor to the post/page admin?

What's the simplest way to add a second HTML editor to the post/page admin and show the content in a template? What I need is something like a custom field that supports html, but I don't need the ...
1
vote
1answer
1k views

Bulk Custom Menu and Wp-Ecommerce

I have to add a lot of items in wordpress menu (lot of 2nd level items) is there any bulk menu item creation method available to do it ? is there any way to add wp-ecommerce categories in wordpress ...
1
vote
1answer
1k views

How to hide wordpress default description box?

I'm using custom fields in my wordpress default post area. So i don't want wordpress default description box. I mean i dont want this field. Instead of description box i want excerpt box there. ...
14
votes
7answers
52k views

Get the the top-level parent of a custom taxonomy term

How would I get the top-level parent of a given term? I am using wp_get_object_terms to get taxonomy terms on posts, but instead of showing all tagged terms, I only want to show tagged terms' top-...
1
vote
2answers
253 views

to create own conditional tags for business directory in wp

i want to create conditional tags for the business directory categories as the conditional tags which are provided are for normal categories.which do not work for the business directory categories.can ...
0
votes
1answer
464 views

How to pass the current content of $wp_query to a new page?

I am developing a Wordpress theme that uses a lot of AJAX. It is composed of two main pages: the index, which displays a list of posts, and a viewer (similar to single.php). When a post is clicked in ...
0
votes
1answer
869 views

WordPress 3.2.1: jQuery is not defined, breaks Admin panel

I've fresh-installed a WordPress 3.2.1 on my server yesterday. Unfortunately, installing 3.2.1 breaks all the jQuery scripts and I can't click on "Collapse menu", "HTML" in the editor, "Fullscreen" - ...
4
votes
5answers
3k views

Remove top admin bar

whenever admin or any other user logs in a top bar menu ads up. Now I made login for everybody, so I do not want this bar. First I added display:none to admin-bar.css, but the main problem is that ...
0
votes
1answer
822 views

saving meta/custom field to tag

In my custom post type what I am trying to do is say I have select drop down option called party_ad. The value of the options are obtained via an RSS feed. echo '<select name="ad_Tags" id="ad_Tags"...
0
votes
1answer
893 views

How to adjust the Cartpress e-commerce plugin?

Has anyone used Cartpress before that could give me some pointers? I've installed the plugin but struggling to find all the templates it uses to display everything. I'm using the default theme in WP ...
1
vote
4answers
3k views

Images not showing on blog

This morning most of the images on my wordpress blog (http://records.photodharma.net) have stopped loading. This even happening on embeds. All the images here are embedded: http://records....
1
vote
1answer
150 views

WordPress Comment posting problem

I am getting trouble with WordPress comment posting. As per my WP setting there is no approval needed to display the comments under blog after posting. Most of the comments posted display immediately. ...
1
vote
1answer
137 views

How is WP_Query parsed to determine which template to request?

I noticed that when I changed the WP_Query to ask for a certain category, the page served was category.php. So I'm guessing there's a block of code somewhere that decides which template to serve based ...
1
vote
1answer
4k views

Check if tag, category or author on archive.php

i'm making a wordpress theme and want to use a single archive.php page in order to present posts under a specific author, a category or tag. Now, i'm doing it like : if (is_author()) { } if (...
0
votes
1answer
894 views

bbPress plugin - How do I add a forum description?

This might be a total dummy question, but I have no idea where to enter the forum description with bbpress. I see it on plenty of other bbPress-powered forums, and the plugin is inserting <div ...
0
votes
1answer
264 views

How to create a plugin page that shows XML?

I'm looking for the best way to create a plugin page that displays XML. It needs to be: Front facing to the public Valid XML that removes all the admin hub-bub and allows me to change the header ...
0
votes
1answer
1k views

Adding custom class names to anchor in wp_list_pages

I've the following navigation: (example) <ul id="mainNav"> <li><a href="#" class="watishet">Wat is het</a></li> <li><a href="#" class="hoewerkthet">...
0
votes
1answer
1k views

How to force unlink on attached/inserted images?

When users insert an image into the content, WordPress automatically wraps the image in a hyperlink that, when clicked, creates an "attachment" page showing only the image inside the theme. Can I ...
1
vote
1answer
473 views

Has anyone used the wordpress plugin w3-total-cache on a Dreamhost VPS successfully? [closed]

I was encouraged by Dreamhost to go with FCGI, XCache and w3 total cache. But I'm not sure what the optimal settings are, especially re: the Object and Database cache. Any suggestions? Also, I can't ...
0
votes
1answer
123 views

Highlighting top level link when viewing one of it's sub-pages, which are not linked in the menu

I have a page that is not linked in my custom menu. This page has a parent page, which is linked in the custom menu. If I go to the "not-linked" page, I want to to highlight it's parent page link in ...
0
votes
1answer
49 views

List only categories i specify

Ok, so this site's navigation is built up from Categories. However, my client wants specific grouping of the navigation items, ie. x y z ---- 1 2 ---- 3 4 ---- 6 There is no conceivable way to ...
0
votes
1answer
113 views

Add title=“” to A PHP Code

I am using a code to call WP thumbnails and want to add a title="" tag. I would like the title to call the_title... how do I do so? I want to assign the title tribute to the image, not the link. My ...
5
votes
4answers
9k views

wordpress sanitize array?

I have a custom post form that sends data to a page which uses wp_insert_post to create a post. I can easily sanitize most data, but I have some troubles with my tags, I retrieve in an array: $tags = ...
2
votes
2answers
589 views

edit posts through front-end

It's possible to insert posts by users through the front-end by using plugins such as gravity forms or by using wp_insert_post. However, how would one handle the editing of those posts? This has to be ...
1
vote
1answer
104 views

All of my custom posttypes are 404'ing

All of the posts made within custom posttypes have suddenly become uneditable, and will 404 when you try to view them. The posts in the admin panel are greyed out (posts in the standard post/pages ...

15 30 50 per page