umahnken
Forum Replies Created
-
Forum: Plugins
In reply to: [Advanced Query Loop] CPT sort by titleI found it, reason was a plugin which sorts posts automatically …
Forum: Plugins
In reply to: [Advanced Query Loop] Meta Query > Meta Value date()Thank you @laned69 !
I am using your solution with META VALUE “todays_date” and META COMPARE >= to get all coming events since today. With <= I am getting all past events, clearly.
Do you have an idea how to toggle between the two, so that the user can click somewhere to do this action?Forum: Plugins
In reply to: [The Events Calendar] How to view content in the widgetHi @masoodak
Thanks for your help. It’ curious, but suddenly your approach worked with my site. I am sure not have changed anything … But okay 🙂
Forum: Plugins
In reply to: [The Events Calendar] How to view content in the widgetunfortunately not
Forum: Plugins
In reply to: [The Events Calendar] How to view content in the widgetThanks, but This makes no difference …
Forum: Plugins
In reply to: [The Events Calendar] How to view content in the widgetHere is a solution which brings back tags like <b> or <i>, but unfortunately not <p>…</p> or <br>:
function get_posts_as_array( $loop_args = array() ) { $posts_output = array(); $defaults = array( 'post_type' => 'tribe_events', 'post_status'=> 'publish' ); $post_loop_args = wp_parse_args( $loop_args, $defaults ); $post_loop = new WP_Query( $post_loop_args ); while ( $post_loop->have_posts() ) : $post_loop->the_post(); $single_post_id = get_the_id(); $single_post = array( 'id' => $single_post_id, 'content' => apply_filters('the_content', get_the_content($single_post_id)) ); array_push( $posts_output, $single_post ); endwhile; return $posts_output; };Call this with for example the following code:
$posts_array = get_posts_as_array(); $content = implode($posts_array[$i]);Forum: Plugins
In reply to: [The Events Calendar] How to view content in the widgetThanks, it works 🙂
One more question: the_content() stripped all HTML tags from the description. How can I get these tags back?