All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
717 views

Last post in loop - custom post types

I added the below code to my index.php and it's working fine. Then I added it to my type-[post_type].php file and it's still displaying the code for the last post on the page. I can't figure out why. ...
1
vote
1answer
319 views

Wordpress slugs and 404 handling takes preference over folders in site root?

I have wordpress installed and permalink structure set to /%postname%/ In addition to WordPress folders, I also have a public_html/beta folder where I wanted to copy the same site and test some ...
0
votes
1answer
2k views

How to show specific year archive into dropdown list

Here is my current code which shows a dropdown list of all years daily post archive. <select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'> ...
5
votes
1answer
4k views

How Do I Use The Wordpress Plugin Posts 2 Posts by Scribu?

I have a Wordpress site that relies on relationships quite heavily. It's a record label website where artists can be related to tours, reviews, album releases and store items throughout the site. I ...
4
votes
3answers
2k views

How to auto-upgrade my plugin?

How do I have my plugin pop up with that New version available. Upgrade Automatically dialog to appear when my plugin has a new version? Specifically for plugins not hosted on the WP.org repository.
2
votes
1answer
2k views

With get_posts(), how can I put a category as a variable

I'm a noob at this so please bear with me. I have the following code to return post title as links within categoryID 6, which is working fine: <?php global $post; $cat_posts = get_posts('...
1
vote
2answers
3k views

get_site_url is not returning anything?

I'm using the twentyten theme with the bbpress plugin. I have the following in my header.php (twentyten): <div id="masthead"> <div id="branding" role="banner"> <...
1
vote
2answers
523 views

Blocking author paging for blog entries?

I've noticed on our WordPress blog that I get Google hits on two forms of blog entries: http://blog.stackoverflow.com/2011/01/twitter-question-feeds-for-stack-exchange/ and http://blog....
3
votes
2answers
278 views

Need some templating advice for templating with custom post types and taxonomies

I'm setting up a "Design Show Winners" section for a design organization that runs it's site off WordPress. For ease of use, I'd like it to be a custom post type of "Design Show Winners" with non-...
1
vote
1answer
165 views

Is it possible to install a theme via a plugin?

I'd like to simplify the installation and default settings of my theme, by creating a plugin that installs it (versus the traditional "Appearance > Install Themes" routine. Once installed, I want to ...
2
votes
1answer
689 views

Highlighting the current page in a navigation menu which links are generated with a custom loop?

This is a second navigation menu I'm using: <ul id="forums"> <?php $custom_posts = new WP_Query(); ?> <?php $custom_posts->query('post_type=bbp_forum'); ?> ...
0
votes
2answers
6k views

action for 'contact form 7'? [closed]

I have a page outside of my standard Wordpress site and I want to use my header and footer on it so it looks like it's part of my site. In my footer, I have a CF7 form that I'm trying to replicate. ...
0
votes
1answer
442 views

Need To Resize Images Exactly Without Losing Image Details

I am working on a Wordpress site that heavily uses image uploading and whatnot, I have defined the image sizes in my functions.php and I have hard crop mode turned on which ensures that my images are ...
4
votes
2answers
4k views

Now can I group custom post types together?

Now that wordpress 3.1 is out, where is the documentation for grouping custom post types together in the wp backend?
0
votes
1answer
787 views

My plugin creates custom widgets, How can I programatically add them to existing sidebar widget areas?

OK, I can create the code to add custom widgets to the widgets manager. Check. My next challenge is to, in the same plugin, during activation, check for the existence of my theme, and if active, pre-...
0
votes
1answer
153 views

making posts linked outside of Wordpress still use the same header and footer

I set up my blog so that some of my posts get linked to a page outside of Wordpress. For these posts that get linked outside of Wordpress, I'd like to still include my header and footer so the page ...
4
votes
2answers
5k views

How can I include custom post types on a tag page?

I'm using custom post types, but they don't appear on tag pages along with regular posts and i'd like to include both standard and custom post types on tag or category pages. What would be required ...
1
vote
1answer
873 views

Is disabling test_form in wp_handle_upload a security concern?

I'm writing a plugin that modifies the default behavior when uploading a file for a post or to the media library. I'm setting $overrides in wp_handle_upload() with a custom $unique_filename_callback. ...
3
votes
1answer
629 views

Remove path from the create/edit a post view

Been fiddling around, trying to remove the "path" info that's shown when you create/edit a post in wordpress. Been able to remove word count and the saving draft info, but not the path thingie This ...
0
votes
1answer
85 views

Moving Some Articles to new site

I have a question about moving wordpress sites around. I've read most of the Support Docs about moving a wordpress site. My question is this, what would you guys recommend in regards to moving only ...
0
votes
1answer
812 views

WP Subtitle Plugin Problem

I'm having some problems getting the WP Subtitle plugin to work. After inserting the <?thesubtitle()?> or <?getthe_subtitle($id)?> into the index.php template I get a 'call to undefined ...
1
vote
1answer
1k views

Loading a remote WP website to Netbeans

I have a Worpdress blog on a hosting company (it's remote and existing). I would like to load it to Netbeans. How do I do that? Thanks,
0
votes
2answers
1k views

Different size video display for category page (smaller) & detail page (larger)

I have a 'media' category page that pumps in videos / image galleries. I'm looking to have a smaller size video display (vimeo / youtube) on the category page, and the full size video on the single ...
1
vote
3answers
1k views

Showing up my custom post type in primary navigation

I have 4 custom post types set up in my blog and video is one of them. I want the video archives page (archives-video.php) to shop up in my primary navigation. how do I do this without writing a ...
0
votes
1answer
3k views

How to show only child categories using the_category();

I'm using the_category(); on my category.php template to show the category's name — the problem is that it attaches the category's parent category. Is there any way to show only child categories using ...
0
votes
2answers
1k views

Custom Post Type 'Event': Chronological list of recurring events from meta_values in array

i have a custom post type 'events'. Each event (post) can have multiple dates. The dates (date, time, location) are stored as array. I need a query that creates a chronological list of all events from ...
0
votes
1answer
1k views

Calling multiple scripts using wp_enqueue_script

I'm trying to call multiple JQuery scripts using wp_enqueue_script. The call to JQuery works perfectly but the second call to cufon doesn't. I'm not a php or javascript expert - could anyone lend a ...
1
vote
2answers
3k views

restricted rss feed

One of my wordpress blog is protected by the wordpress password plugin. however, I would like provide rss features. I found how to configure wordpress plugin to make rss work. But, by default, it ...
0
votes
2answers
484 views

List top 5 authors with most posts

How are you? I have a blog which have 20 authors. I want to write code to show the 5 author who have more posts. like this: Adam (10 Posts) Khal (8 Posts) Yous (5 Posts) Moha (3 Posts) Yousef (1 ...
1
vote
1answer
381 views

Error While Sending Comment

I'm trying to apply this tutorial to my blog. I'm using Woothemes' Bueno Theme . I'm adding this code to my theme's functions.php file : function ymc_add_meta_settings($comment_id) { ...
0
votes
2answers
99 views

Tags are automatically converted if they match post names. Stop It!

Recently I noticed that if I had post tags that are the same as a page name, wordpress is updating the tag to the page title rather than the slug entered. So in this case if I give wordpress the tag '...
26
votes
1answer
18k views

how to limit search to post titles?

Is there a way to limit search to post titles? I know I can modify query.php core file but there must be a way to do it with hooks right? Thanks in advance!
1
vote
2answers
3k views

class=“parent” for wp_list_pages?

<div class="menu"> <ul> <?php wp_list_pages('exclude=&title_li='); ?> </ul> </div> creates the following output... <div class="menu"> <...
0
votes
1answer
4k views

Echo Custom Taxonomy Field Values Outside the Loop

I have a custom taxonomy called 'game'; posts have a taxonomy value, i.e. Halo, which then has seven different fields; game_name, game_genre etc. I'm trying to echo the meta data for a given post's ...
4
votes
2answers
1k views

Wordpress as College Application System (Embark)

Anyone knows of any plugin or anyone has been using WordPress to serve as a College Application system similar to those by Embark? If not, I'm looking for idea of using current plugins to accomplish ...
0
votes
1answer
411 views

Returning info from MYSQL table via custom taxonomy

Update: I'm now trying to find a way to echo the metadata of a custom taxonomy's value. I'm trying to create some PHP to use in a plaintext widget that'll display information in my sidebar. Because ...
1
vote
1answer
5k views

Change admin logout URL

My site is using a short vanity URL. This is working across all of the custom theme pages. The only problem is when I logout in the admin it redirects to the long URL, which then 404s. My General ...
3
votes
7answers
2k views

Best hosting for Wordpress blog(s)? [closed]

I'm having pretty heavy (lots of images) Wordpress website with around 20-30k unique users per day (1,000,000 monthly). German hosting that I use works fine in Europe, but many visitors from the USA, ...
4
votes
3answers
4k views

Loading template files from a subfolder in my theme?

I am working on a site that will have up to 30 templates in it. I don't want to have all those templates at the root of my theme folder cluttering up everything. I know how I can modify the ...
12
votes
5answers
54k views

How to add a Custom Link to a Menu with a URL that is relative to the blog URL

Part of my work is to create Wordpress websites. I usually work on my laptop until I have something good enough to be uploaded to the test server where the client reviews it. I create a VirtualHost ...
1
vote
2answers
120 views

Wordpress to end support for PHP 4?

Recently getting into wordpress plugin development, I started to investigate how to make my code backward compatible to php 4+. I've focused only on php 5.1+ for the past 5 years, so this was an ...
0
votes
1answer
522 views

Correct way to add a block element to sidebar layout

First time experimenting with wordpress and looking for advice on the correct way to add a block of html to a sidebar. This doesn't seem like a custom widget to me as there is no functionality ...
0
votes
2answers
1k views

How long should it take for a plugin to fully load into the WordPress.org plugin repository?

I updated my plugin, Export to Text, to 1.3 and committed it to the WordPress SVN repository yesterday. The 1.3 download button was available pretty quickly, but a day later the read me text is not ...
3
votes
1answer
361 views

Best way to automate the page/post publication process?

I'm working on a spreadsheet that has the contact information for thousands of training programs related to my niche. I'm wondering if any of you know a way to automate the process of creating a ...
15
votes
3answers
4k views

What is the role and history of the $content_width global variable?

I just stumbled over a global variable called $content_width. It was new to me, so far I could see that it's used in themes, both the standard twenty ten one and third party ones. It looks like that ...
7
votes
4answers
4k views

Display/query post formats

WP 3.1 has everyone excited, if somewhat confused, about post formats. Enabling new post formats The issue of enabling post formats has been covered at length. It's as simple as adding this line to ...
2
votes
1answer
4k views

How do i paginate query_posts with numeric pagination?

I have post type called blog and i'm showing posts for the type using query_posts, eg. query_posts('post_type=blog'); I would like to add pagination for this post type in the following format. [...
0
votes
2answers
4k views

How do I get a child theme to load scripts from the parent theme?

Pretty new to WordPress functions, so apologies if this is basic stuff. I've designed a parent theme that registers and enqueues two scripts like so: if ( !function_exists( 'scherzo_scripts' ) ) ...
0
votes
1answer
42 views

On the post list, how do you show different text to the main content?

Not sure if the title makes sense sorry, but at the moment on my blog there is a long list of posts (with the thumbnail custom field) - the text next to the thumbnail is just the first characters from ...
34
votes
6answers
23k views

Extending the search context in the admin list post screen

I have created a custom post type and have attached some custom fields to it. Now I would like to the search that authors can perform on the custom post list screen (in the admin backend) to also be ...

15 30 50 per page