Post type cloud like tag cloud?
Anyone know if it's possible to create something similar to the wordpress built in tag cloud (wp_tag_cloud) but instead of displaying tags, display custom post types?
Thanks
Solutions
How about the
wp_generate_tag_cloud()
function? You'll need to feed it
$tags
, which is an array of objects with the link and term_id, set something like this.
$tags[]->link = $link;
$tags[]->id = $tag->term_id;
The term_id will only be used in the CSS...so don't sweat that too much.
Similar questions
WordPress, Possible to have the Tag Cloud Widget only display tags assigned to the given post?
I have included the tag cloud widget as an element within my blog posts. Is it possible to have the tag cloud only display relevant tags/tags assigned to the given post? Thanks!
Display inner pages like posts.[Like how post excerpt works]
This question may be stupid. But, i'm just wondering if there is a possibly way to display page as excerpt like how post excerpt works. You may not be able to understand what am i trying to ask till now. Well! I try to point out the main subject of this question with examples. The question is actually very simple. For example: We have a main page f...
How to create a costum template structure like for pages and post but for different entities like hotels, products etc
Hi everyone I am creating a wordpress theme and a custom plug-in which is related to hotel booking and display the information on the front end entered in the back end in admin panel of wordpress . so friends whenever a post is displayed the url is like http://localhost/wordpress/uncategorized/post10/ and the name of the post or id of the post chan...
WordPress Post Meta Like Query Does Not Recognize Second Like Statement
Currently I have built a search feature that takes in 3 variables. One is the term to search, second is the province (custom field), and the third is the city (custom field). Currently the way it works is as follows: If I try to search by term and province, the results I expect are returned. When I then try to also search by city (3 parameters) all...
Filter query_posts by tag slug on "Tag Archive" page (when tag is 2 or more words)
I'm using the following to bring up a tag archive page: This works perfectly for all tags of one word only, but any tags of more than one word (eg: "tag one", slug: "tag-one") do not display. Is it possible to query_posts by tag slug, rather than single_tag_title? Thanks!
How do I get tags linking to proper pages (/tag/sample-tag -> pages with that tag)
(Warning: WordPress newbie ahead...) I have a WP site with a bunch of posts, many of which have tags associated with them. However, clicks on links to such tags -- https://example.com/tag/sample-tag) -- don't produce the pages I would expect -- a collection of teasers for posts with that tag. I just get the "nothing" page -- "Nothing...