Forum Replies Created
-
AuthorPosts
-
August 23, 2012 at 9:30 am in reply to: Few little quirks that I am hoping someone can advise on… #10277
Hi,
I wasn’t able to reproduce that problem on my test system. Do you think you could share a URL where I can see it mis-behaving? Or better yet, if you can email a login I’ll take a look in the blog.
August 23, 2012 at 8:20 am in reply to: Few little quirks that I am hoping someone can advise on… #10274Hi,
I think I can answer your questions:
1. Are you using the latest beta? If so, on the settings screen you can indicate which links you want in the mashup balloon (directions from, directions to, and zoom).
2. If you use ‘marker_link=”true”‘ in mashups (it should be the default) the POI balloon should display the post title, post thumbnail and post excerpt instead of whatever is saved in the POI itself.
3. See #2, it should show the thumbnail as well (in mashups)
Hi,
1. What happens if you use a mashup directly in a post, without using do_shortcode()?
2. What happens if you disable your other plugins/theme?
If you like, after doing the above send a login and I’ll try to troubleshoot it for you – I haven’t been able to reproduce this problem on my test system.
I really don’t know what would make those post types unique.
I have several times seen conflicts with other plugins and themes that affected queries. They can really difficult to troubleshoot, so I still think it’s always worth disabling plguins and switching the theme as a first step.
You can also try just taking MapPress out this – try just running the query and printing the results instead.
For example in yout template page do this instead of do_shortcode() :
$wpq = new WP_Query("posts_per_page=-1&post_type=projects");print_r($wpq->posts);
Hi,
- How are you are displaying the other 7 post types (that work) ?
- What happens if you just put the mashup shortcode in a post, rather than putting it in the home.php file?
- Are the posts public and published? If they are private they won’t show up in query results.
- What happens if you deactivate your other plugins and use a standard theme (like ‘twentyeleven’)?
If the above don’t help, please use the contact form to send me a login and I’ll take a look.
Hi,
What version of MapPress? What’s the mashup shortcode you’re using?
As a general tip, you can use ‘post_type=xyz’ to select a post type or ‘post_type=any’ to try all post types. Also, you need to specify ‘posts_per_page=-1’ or your blog will limit the number of posts retrieved.
Hi,
If it helps, the full query reference is here: http://codex.wordpress.org/Class_Reference/WP_Query
I think you can just use post_type, separating the types with commas. For example, for posts & units:
query="post_type=post,units"
You can also use this to get all post types (in which case you’ll need to identify the relevant posts by category, tag, or something else):
query="post_type=any"
Hi, you just need to add a column header (a <th> tag) for each column and adjust the column widths. I’ve emailed you a complete file.
Hi,
Sorry, that’s not possible in the current version.
What would you want to see instead of the empty map? For example, one approach would be to show the map but instead of listing the locations print “No results”.
Hi,
I think I see the problem: if you read the WordPress documentation carefully it mentions that category_name only takes a single slug as a parameter, not an array (list) of terms:
Here’s an excerpt from http://codex.wordpress.org/Class_Reference/WP_Query
- category_name (string) – use category slug (NOT name).
- category__and (array) – use category id.
- category__in (array) – use category id.
- category__not_in (array) – use category id.
There are a few examples in the mappress documentation.
Hi,
Category_name is for category slugs, which are not always the same as the description. Are you using slugs?
If so, can you provide an example of your complete mashup shortcode?
Great, thanks for letting me know!
Hi,
It may be a bug. Please upgrade to the latest (2.38.5).
I just tested that version with category__in and it worked fine for me. I’m assuming you’re using slugs for category_name and IDs for category__in.
Here’s how I wrote my mashup:
[mashup query="category__in=1543,1531"]
There’s nothing built into the plugin for that, so it’s really up to you.
You could use a custom post type, category or tag, but you’ll need to structure the query for your blog to suppress those posts. There should be some articles in the codex or online about how to do that.
Another options might be to set the post status to ‘draft’ or a similar status that would not normally be visible. You can then include that status in your query, using the ‘post_status’ argument:
Hi,
If you try one of the latest versions, it should do exactly what you want: it scrolls to the first directions field (‘from’ address) when you click the link:
-
AuthorPosts
