jung921
Forum Replies Created
-
Thanks Dalton.
Your updated version 1.0.5 fixed all problem for me.
Your help and support was fantastic! thanks once again!Hi again Dalton,
As requested, here is the html code:
http://pastebin.com/Y8CX6NYCHi Dalton,
Thank you very much for your support.
I am still having the same issue after trying the new version. everything else seems working fine but clicking the question title still brings me to a page with the question on instead of expanding it. Refreshing browser cache didn’t help.
I guess it might be confict of my jquery installed on my theme and not your plugin problem.Thanks for your prompt reply Dalton,
Unfortunately, I cannot post a link as we are using wordpress as our staff intranet site. After installing the new version, clicking the question does not expand with the answer. it just open a page instead.sorted by myself. use end time same as start time –> it will remove the end time
Hi there,
I had experienced same issue. and I found the fundamental problem was in my windows server.
Are you ruuning on apache server on windows?Following is my code
What I am trying to do is if it is event page, display the events that are not past.
Anyone please help?<?php /* Plugin Name: category post shortcode Plugin URI: http://ibnuyahya.com/wordpress-plugins/category-post-shortcode/ Description: To display post by category in your page/post Author: ibnuyahya Author URI: http://ibnuyahya.com/ Version: 1.0 */ /* * * How to use * ============================================================================= * just put this shortcode in your post or pages * * [cat totalposts="3" category="1,3" thumbnail="true" excerpt="true" ] * * totalposts - your total number of post to display. default is -1 * category - category id. use comma , for multiple id * thumbnail - set true if you want to display thumbnail. default is false * excerpt - set true if you want to display excertp. default is true * orderby - your post will order by . default post_date . check http://codex.wordpress.org/Template_Tags/get_posts for detail * * thumbnail * ============================================================================= * create custom field key as thumbnail-url and put your thumbnail url in the value area * * style at your own * ============================================================================= * you need to style your category-post-shortcode plugin in your style.css example .cat-post{ width:100%; } .cat-post-list{ display: block; margin-bottom: 20px; position: relative; } .cat-post-images{ float:left; width:140px; display:block; } .cat-content{ width:350px; float:right; } .cat-post-title{ display: block; width:100%; } .cat-clear{ clear:both; } */ function cat_func($atts) { extract(shortcode_atts(array( 'class_name' => 'cat-post', 'totalposts' => '-1', 'category' => '', 'thumbnail' => 'false', 'excerpt' => 'true', 'orderby' => 'post_date', 'order' => '' ), $atts)); $output = '<div class="'.$class_name.'">'; global $post; $myposts = get_posts("numberposts=$totalposts&category=$category&orderby=$orderby&order=$order"); foreach($myposts as $post) { setup_postdata($post); $output .= '<div class="cat-post-list">'; if($thumbnail == 'true' && get_post_meta($post->ID, 'thumbnail-url',true) != "") { $output .= '<div class="cat-post-images"><a href="'.get_permalink().'"><img src="'.get_post_meta($post->ID, 'thumbnail-url',true).'" /></a></div>'; } //if category is news elseif(get_post_meta($post->ID, 'thumbnail-url',true) == "" && $category != 10){ $output .= ' <a href="'.get_permalink().'"><div class="date"> <div class="date-month">'.get_the_time('M').'</div> <div class="date-day">'.get_the_time('j').'</div> </div></a>'; } //if category is event elseif(get_post_meta($post->ID, 'thumbnail-url',true) == "" && $category == 10){ $output .= ' <a href="'.get_permalink().'"><div class="date"> <div class="date-month">'.the_event_start_date(null,FALSE,'M'). '</div> <div class="date-day">'.the_event_start_date(null,FALSE,'j').'</div> </div></a>'; } $todaysDate = date('m/d/Y'); $eventDate = the_event_start_date('j F Y'); // If Category is Event (Added by Jung Son 28th March 2011) if ($category == 10) { $output .= '<div class="cat-content"><span class="cat-post-title"><a href="'.get_permalink().'">'.get_the_title().'</a></span><br> <span class="cat-post-date">' .the_event_start_date('j F Y').'</span><br>'; if ($excerpt == 'true') { $output .= '<span class="cat-post-excerpt"> '.get_the_excerpt().'</span> <a href="'.get_permalink().'">read more »</a>'; } } // If Category is NOT EVENT (Added by Jung Son 28th March 2011) else { $output .= '<div class="cat-content"><span class="cat-post-title"><a href="'.get_permalink().'">'.get_the_title().'</a></span><br> <span class="cat-post-date">' .get_the_time('j F Y').'</span><br>'; if ($excerpt == 'true') { $output .= '<span class="cat-post-excerpt">'.get_the_excerpt().'</span> <a href="'.get_permalink().'">read more »</a>'; } } $output .= '</div> <div class="cat-clear"></div> </div>'; }; $output .= '</div>'; return $output; } add_shortcode('cat', 'cat_func'); ?>nobody knows how to do this?
I think this will be very useful for alot of people.Please contribute and give me some hint.
I ‘ve tried it but it doesn’t work well. any suggestions?
Basically I want to enhance the performance of my intranet site.Thanks for your prompt reply.
I have enabled cache for logged in users but it seems it is not recommended by plugin. I will give it a try. thanks!Forum: Fixing WordPress
In reply to: Can't edit and add new Page after upgrading 3.01could you tell me how did you fix that problem? what should I change in apache setting? I cannot add more pages but I can edit pages. also I cannot upload any files anymore. please help
Could anyone help how to remove end time on the event page but shows event end date?
Anyone knows how to fix this issue? I have updated v.1.1 but problem still exist. it is not compatible with table reloaded plugin. they said (developer of table reloaded plugin) it is probably problem with this plugin’s javascript.
any advice would be much appreciated.
Forum: Plugins
In reply to: [Promotion Slider] [Plugin: Promotion Slider] Slides too fastI have exactly the same problem as Kilsen experienced and this problem is fixed only by disablining “pause slider on mouse hover” option.
Is there anyway we can enable it and make this plugin works properly?Other than that, this plugin is really great! thanks!
Forum: Fixing WordPress
In reply to: Special characters causing text to disappearI have exactly the same problem and this is very annoying. anyone has some solutions for it?