All Questions

1
vote
1answer
4k views

Sort “get_pages” by menu order not ordering

I'm using this bit of code to generate a page full of items but they won't sort into the menu order, any ideas as to why? <?php $pages = get_pages(array('child_of', 'menu_order')); ?>
1
vote
2answers
2k views

Image upload appearing as broken images following server move

I've got the horrible task of moving a site from one hosting server to another and had no end of problems for DNS issues to temporary domain issues and FTP issues. However I've managed to install a ...
2
votes
1answer
229 views

Users roles, make a page belonging to multiple users

I have a website with a lot of users. They are all editor (with same custom roles). They can add page and post, and edit only their own page/post. But some users need the ability to edit some ...
1
vote
1answer
868 views

simple expandable vertical menu, java script problem

I am trying to create a simple expandable menu in wordpress. Bellow you can see the javascript I am using (copy and mix from internet). <script type="text/javascript"> ...
1
vote
2answers
882 views

display 20 lines only with the_content

I like to display only 20 lines of post with the read more link using the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>' ) ); But it shows full content . How ...
2
votes
2answers
1k views

How do I use Ajax to show the new posts realtime, on the frontpage

Does anyone know how to make new posts automatically show up in the frontpage, with out having to refresh the page. I have a wordpress site with multiple authors and want their new posts to show up ...
2
votes
1answer
2k views

oEmbed, thumbnails and wordpress

Wordpress has wp_oembed_get, which I use to get rich media content with embed.ly. I've previously used oEmbed api calls such as this. As you can see it provides thumbnail_url, which I like to use ...
4
votes
2answers
2k views

Using wp_enqueue_script on shortcode function handler

I have this code function this_is_my_shortcode(){ wp_register_script('per-pas-belanja-online', plugins_url('js/per-pas-belanja-online.js', __FILE__), array('jquery'), '1.0.0'); ...
0
votes
1answer
110 views

Strange Cached File in Super Cache

I installed super on one of my blogs recently and it has been working fine but I have noticed that it is caching this http://www.mydomain.com/.needs-rebuild which i believe is part of super cache ...
0
votes
1answer
262 views

What's the best way to include php code in to pages?

I'm currently creating a bunch of (empty) pages and performing conditionals such as is_page('Blabla') on it, which increases my page.php significantly. I'm already using require_once for different ...
1
vote
1answer
422 views

Getting $curauth->ID to work inside a shortcode

Im wanting to show a profile/logo pic on author.php via a simple shortcode: function wpaluploader_showauthorimage() { $wpaluploader_authorlogo = '<img src="' . get_bloginfo('url'). ...
0
votes
2answers
60 views

Instead of 4 loops, how can I do it better?

I want to grab all posts from an author under category X. Right now, I am using 4 separate loops to do this for 4 different categories. Is there a better way to do this? query_posts
4
votes
2answers
2k views

How do I add a custom taxonomy as an option for menus under “Appearance” > “Menus”

I've created a custom taxonomy and I want to add it as an option for custom menus (under Appearance > Menus). How do I get it to show up there (see the illustration, I want it to show up where the red ...
0
votes
1answer
1k views

Displaying caption with featured image

I'd like to display captions with my featured images. This is another feature that should be available by default but for some reason is not. There are a few routines out there that claim to ...
1
vote
1answer
2k views

How to store post meta in an array?

What is the best way to store post meta in an array (using a custom write box, know how to do that) so that all post meta is in a single custom field?
0
votes
2answers
892 views

Warning : tempnam() [<a href='function.tempnam'>function.tempnam</a>]: SAFE MODE Restriction in effect

When generating PDF with dompdf I am having this problem in pdf file when viewing file in notepad Warning : tempnam() [function.tempnam]: SAFE MODE Restriction in effect. The script whose ...
6
votes
2answers
1k views

How does WordPress handle permalinks?

WordPress auto corrects the permalinks(URLs) even if it is entered incorrectly. For e.g. WordPress will land you in example.com/some-post even if you enter example.com/idontexist/some-post or even ...
3
votes
3answers
3k views

How to fix a theme with page.php Default Template that accidentally deleted?

I am having a quite odd case with WP today, and after spending about an hour searching on google and forums, can't find any answers. I hope posting here might allow me some chance to get help from ...
0
votes
3answers
2k views

I want Page titles and excerpts to show up on home.php in certain order

In the functions.php, I have the following code added: add_post_type_support( 'page', 'excerpt' ); This allows pages to have excerpts. The reason I want an excerpt is because I want to call only ...
1
vote
1answer
218 views

What is the best way to create a menu item that links to all posts with a certain tag?

I guess the title says it all. Short of creating a page with a custom template that links all the posts with a given tag (this is NOT a scalable solution, particularly if you want to let a customer do ...
0
votes
1answer
335 views

archive-{post_type}.php is defaulting to category.php vs. archive.php on category searches

I am using archive-{post_type}.php for queries of a custom post type. I want the system to use archive.php for category searches but it is defaulting to category.php which I am using for category ...
0
votes
1answer
70 views

Is a no RSS plugin setup supposed to work?

I'm using WP 3.1.2 as provided by Awardspace, a free hosting service. I haven't made any configuration regarding RSS but it seems to work on Google Reader. However, pictures and flash elements won't ...
2
votes
2answers
2k views

Error 101 after upgrading Wordpress

We have just updated to WordPress 3.1.3 by following the WP manual install tutorial. Note: This is a Network-enabled (multi-site) install. After uploading the new files, we now get the following ...
0
votes
2answers
546 views

Why is WordPress redirecting users to random posts after commenting?

After commenting on one of my posts, WordPress redirects me to another random post. Only after, when checking the previous post, I can see that my comment was posted. Still, why is WordPress sending ...
0
votes
4answers
4k views

Sizing textarea field in custom metabox

Here's the code for a custom metabox. Very simply, how would I resize the textarea box? I'd like to add an expression such as cols="50" rows="5". // Echo out the field echo '<p>Enter the ...
2
votes
3answers
594 views

Customize Admin Users Screen based on Role

I've added a role of "Customer" and I am working on customizing the Users Screen for that role. What I'd like to do is customize columns based on that particular role. Note: For example, take a ...
0
votes
3answers
807 views

BuddyPress/bbpress: There was an error when creating the topic

When trying to create a new topic in a BuddyPress installation with integrated bbpress, I keep getting the "There was an error when creating the topic" error message. I've tried the following list of ...
0
votes
1answer
272 views

create relationship between posts from one category and posts from another category

What I'm trying to do is adding in a post admin page a meta box, dynamically listing all posts from another category in the for of a check box list. This way I can create relations between a post and ...
1
vote
2answers
280 views

Options for authenticated feeds

Client has a 3.1x-based site with paywall(using s2Member) which has a public feed that only provides excerpts. He wants to be able to give members full-content feeds, so we need something that can ...
1
vote
2answers
721 views

How to get title tag of an external page with http api?

What is the best method to retrieve the title tag of an external page using the http api? The snippet below will get the body but I can't find the right documentation about how to just get the tag. ...
1
vote
2answers
85 views

Is there a Filter that I can use to filter the tags before they are inserted in to the database?

I want to filter the tags before they are inserted into the database. I'm aware of the pre_insert_term filter. But what I need to do is to see all the tags at once. I need to limit the number of tags ...
5
votes
1answer
837 views

How to add a quicklink to the Posts Admin Published|Scheduled|Trash menu

Here might be an interesting idea: is it possible to add a "quicklink" to the quick links at the top of the Post Admin page (e.g. above the Bulk Actions dropdown, where it says "All | Published | ...
0
votes
1answer
98 views

Pass strings to plugin function [closed]

I have simple function to show an image: function helloworld() { echo '<img src="'.$link.'" alt=".$alt." />'; } I would like to pass strings link and alt to the function something like ...
0
votes
1answer
164 views

Edit multiple custom post types while saving a new or edited post

I have a custom post type with some custom fields in it. Now what i want to do is when i save a new OR edit an existing post in that post type, is to change custom fields from all the other posts of ...
2
votes
0answers
172 views

need a help for modify .htaccess rule [closed]

here is my wp .htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond ...
0
votes
1answer
469 views

I want to create a Visual Recipe site on WordPress, any suggestions or tips on how i can do it? [closed]

I would like to create a visual recipe site, which lists how to make a dish in step by step through pictures.. Is it possible to create a custom page template where i can the following fields. ...
0
votes
1answer
926 views

How to retrive Custom Fields as Values for a Form field

I am constructing a theme for Wordpress that uses PAGES for products for sale on a site. This Product will have properties like DESCRIPTION, PRICE that will be stored to custom fields. I was ...
0
votes
1answer
912 views

show 10 most recent custom post types excluding the one(s) from specific custom taxonomy

After spending most of the day looking for solutions and trying them out, I decided to explain my problem here. I am aware that this subject has been covered and as you will see I am using code that ...
1
vote
1answer
521 views

On Taxonomy Template page, want to add Post_Type

I have a custom taxonomy template page in my theme. Essentially, when someone clicks on a term link into this taxonomy, I -ALWAYS- want to add a specific post-type to the query. I'm not entirely ...
0
votes
1answer
443 views

Problem with UTF8. italian/russian characters

I'm using an RSS feed importer. When i preview the feed, the special characters such as è,à and so on are throwing out gibberish. Searching on the WP.org forum I came across the suggestion to add the ...
1
vote
2answers
733 views

WP-Cufon adding extra space in my paragraphs in Firefox and Chrome

I'm using WP-Cufon for font replacements. It's adding extra cufon canvas out side of p tags in my page, which is seriously messing up my layout. The URl is this http://doscasas.com.mx/dev/ . But it ...
-2
votes
2answers
394 views

WP can't send newsletters

I'm using ALO EasyMail Newsletter plugin in order to send newsletters to subscribers. I have setup settings which is mainly the email address and try to send an email for subscribers but it doesn't ...
0
votes
2answers
258 views

Use ColdFusion to pull in WP.com posts?

Is it possible to pull in Wordpress.com posts into an external site, in this instance, ColdFusion? Is there a REST API for it? If not, is there another solution to pull in content? Thanks!
1
vote
3answers
8k views

How do you get the current-menu-item ID?

Im trying to get the id of the menu item that has be class called "current-menu-item". Not the current page id, but the nav item id. Please help
2
votes
1answer
121 views

Is it possible to use pages to apply static content to each taxonomy level?

I'm thinking of using a taxonomy archive template to list out my taxonomies and entries (I'm using a hierarchical structure) and then combining this with the WordPress pages module to apply static ...
0
votes
1answer
208 views

Uninstalling IntenseDebate

I have been using the IntenseDebate Comments plugin, but am unhappy with it and would like to uninstall. Supposedly due to the data synchronization feature, it shouldn't be a problem to just disable ...
1
vote
3answers
2k views

Is there a way to import terms into Wordpress?

I'm tired of typing in lists of counries in my "Countries" taxonomies. What's a good way to bulk import a long list of terms into Wordpress ?
1
vote
2answers
381 views

Inserting shortcode [stream /] into a Text widget

hi i'm trying to insert a short code into a Text widget but all its doing it showing the code and not processing it. <?php echo do_shortcode(' [stream embed=false share=false width=500 height=560 ...
0
votes
2answers
256 views

Links after moving my site to another domain

I'm going to move my site from development/staging environment (i.e. dev.example.com) to production environment (example.com). Probably, existing links in my pages and posts will still point to the ...
1
vote
1answer
184 views

Wordpress Custom File Permalink

Guys i have a custom file that is not part of the wordpress and its not a part of the plugins. How can i add it to the permalink solution? For example: Custom file name - example123.php Permalink ...

15 30 50 per page