Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 3782

Custom Post Types extend WordPress to support additional content.

0 votes
2 answers
3k views

Custom post type not saving

I've recently created a custom post type, however each time an update is saved the contents of the meta field disappears after a few minutes. Is this a bug? <?php // CUSTOM POST TYPE 1 add_ac …
toomanyairmiles's user avatar
0 votes
2 answers
1k views

Problems with pagination for a custom post type

My pagination links are failing for a custom post type here http://mjw.view-wireframes.com/about-us/press/ the page reloads http://mjw.view-wireframes.com/about-us/press/page/2/ but this has no effec …
toomanyairmiles's user avatar
0 votes
Accepted

Problems with pagination for a custom post type

The answer turned out to be using orderby date instead of post date!
toomanyairmiles's user avatar
0 votes
2 answers
205 views

Display an icon based on post type

I have a defined set of seven different post types and would like to display an icon for each one in the search results list. I've got the following code to display the post type but have no idea how …
toomanyairmiles's user avatar
1 vote
Accepted

Display an icon based on post type

<?php $post_type = get_post_type($post); switch ($post_type) { case "type1": echo "<img src='label1.png'/>"; break; case "type2": echo "<img src=' …
toomanyairmiles's user avatar
0 votes
0 answers
20 views

Allowing null vairiable

I'm working on a shortcode to display a custom post type, which mostly works. I don't control the feed this data is coming from, hence the need to split up the title based on delimiters. The problem I …
toomanyairmiles's user avatar
7 votes
2 answers
36k views

Displaying a custom post type alphabetically

I've created a custom post type which now has around 100 posts in it. I simply want to display these in alphabetical order by the post title rather than the default which seems to be most recent first …
toomanyairmiles's user avatar
3 votes
1 answer
1k views

Integrating an interactive map into a Wordpress custom post type

A while ago I created an interactive map for my website using Ian Lunn's BBC News Map, and custom fields to set the html for each area. It looks like this:- I'm now trying to integrate this with a …
toomanyairmiles's user avatar
0 votes
1 answer
195 views

Wordpress custom post type post and category links 404

I've recently created several custom post types in a wordpress site, with the code below, they are generating links in the correct form e.g. root/category/id/postname but each link to the full post, p …
toomanyairmiles's user avatar
4 votes
4 answers
25k views

Get custom post type by category in a page template

I've created a custom post type with categories and sub categories, what I need to do is list out the post titles and images for a given sub-category or category in a page template. I've got as far a …
toomanyairmiles's user avatar