mgrmn
Forum Replies Created
-
Forum: Plugins
In reply to: [CPT-onomies: Using Custom Post Types as Taxonomies] How to?CPT-onomy, howerver tried a bunch of the same kind of plugin, all failed.
Basicly i start having problems after using ULTMATE CMS (taxonomy plugin aswell), stopped working and after that … couldnt get it to work, or any other plugin in that class (taxonomy).So maybe its not your plugin, maybe its some cache problem dont know.. I finally ended up writing a simple code in my functions.php (theme) to be able to do what I needed to do.
Forum: Plugins
In reply to: [CPT-onomies: Using Custom Post Types as Taxonomies] How to?Yea did all that… (did use search on the subject) nothing worked..
Because its not for a listing of locations that have events, more having a page listing locations as in
Lounges
Discos
Hoteles
etc….Fixed it using this,
Now the only left me is to get the direccion info, and excerpt for content of the location ! (how do i access the other info of the location?)
$bloginfo = get_template_directory_uri(); $time = get_the_time(get_option('date_format')); $permalink = get_permalink(); $title = get_the_title(); $img_src = wp_get_attachment_image_src( get_post_thumbnail_id($GLOBALS['post']->ID), ''); echo '<div class="entry clearfix"><div class="thumb_medium"><img src="'.$bloginfo.'/scripts/timthumb.php?src='.$img_src[0].'&w=140&h=80&zc=1&q=100" alt="'.$title.'"/></div><div class="post_content"><h2><a href="'.$permalink.'" rel="bookmark">'.$title.'</a></h2><p>-----</p><div class="meta-box"><span>----</span></div></div></div>';
the_post_thumbnail shows thumbnail but… kinda funny
My code
if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); $bloginfo = get_template_directory_uri(); $time = get_the_time(get_option('date_format')); $permalink = get_permalink(); $title = get_the_title(); echo '<div class="entry clearfix"><div class="thumb_medium"><img src="'.the_post_thumbnail(array(150,150)).'" alt="'.$title.'"/></div><div class="post_content"><h2><a href="'.$permalink.'" rel="bookmark">'.$title.'</a></h2><p>[get Address of location ???]</p><div class="meta-box"><span>[get CONTENT EXCERPT of Location ??? ] </span></div></div></div>'; endwhile; } wp_reset_query();
result: (see image https://postimg.org/image/rgjkyuei3/ )
<p><img width="150" height="150" src="https://localhost/wp-content/uploads/2013/06/Location-Image-e1370844933939-150x150.jpg" class="attachment-150x150 wp-post-image" alt="Location Image" /> <div class="entry clearfix"> <div class="thumb_medium"><img src="" alt="Location 1"/></div> <div class="post_content"> <h2><a href="https://localhost/?location=location-1" rel="bookmark">Location 1</a></h2>
Any Help would be apreciated.
fiddling around..
I found that this actually kinda does what i need, however can somebody how I can access thubmnail & address of the location…
function get_place_list($atts) { extract( shortcode_atts( array('type' => ''), $atts ) ); $args=array( 'taxonomy' => 'places', 'term' => $type, 'post_type' => 'location', 'posts_per_page' => 10, 'caller_get_posts'=> 1 ); $my_query = null; $my_query = new WP_Query($args); if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> <?php endwhile; } wp_reset_query(); }
Thank you so much
Same here… Xydac Taxonomy Fields can add them, but not remove them
Did a reset, that seemed to have solved the issue 404
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Add category to URLNot sure what to put in there
Event Categories
e.g. https://www.domain.com/event/ /concerts/ /nightlife/I would i add all those categories ?
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Add category to URLMy htaccess knowledge isn’t that good, i would i put this in?
Currently I maintain category name/slug in url, just not the part that says /category/
Does does not work for me in event manager
yea sorry typo.. it is event_form
Did have anything [none] changed that into the page there the [event_form] is located, now its OK
At first it said
The page isn’t redirecting properlyHowever deleted the page, created a new page now it works fine!
Can I change the design of form page?Thnx
That fixed it for me ??
Not creator of the event MANAGER but do you mean
Event Categories
Parent
—— of main Event Cat (== Sub cat!)Whats the shortcode for adding submit form to page? maybe that will solve my issue!
Upload_image in User Capabilites checked.
I tried the following
Switching to default template
Disabled ALL PLUGINS
— But same problem.Dont have error log, can’t seem to find my logs with Hostgator..
ill replicate it on localhost, and see whats pops upEdit:
Error log empty — *nothing concerning event manager or upload errors!Only Error message is while trying to upload image (subscriber)
errorupload.jpg