Event Made Easy – Block registration to two or more events that have the same category
Event Made Easy – Block registration to two or more events that have the same category
Event Made Easy – Block registration to two or more events that have the same category
Ok then time to move my response into an answer, because it seems you just want to exclude categories from the loop in the above code.. Assuming you’re alright to modify this file(a plugin update would overwrite it), then simply conditionalise your loop like so.. <?php $excluded = array( 1, 2, 3 ); foreach($categories as … Read more
You could enable links, images and other tags for use with the_excerpt. This might be the most simple solution, but it will apply to all excerpts: <?php function my_excerpt_custom($text) { $raw_excerpt = $text; if ( ” == $text ) { $text = get_the_content(”); $text = strip_shortcodes( $text ); $text = apply_filters(‘the_content’, $text); $text = str_replace(‘]]>’, … Read more
still don’t know what exactly fixed it. but now it’s all right. i have also found another way to show custom fields: if you want to show a specific field in a specific place, in the CartListDisplayer.php, add to the function lcp_build_post anywhere you like: $lcp_display_output .= get_post_meta($single->ID, ‘featured’, true); where featured is the name … Read more
I creates a shortcode for the same. I need to display all the post of a particular category in a specific format. So added a function in php to add shortcode with input as ‘category name’ and show in the format I want. This link helped.
Child-Theme Category View with modified permalinks (%category% removed)
Add a new category for posts
Getting the posts list visualised in categories tree
It’s not an expected behavior for the plugin, though I could make the link something more generic. In the meantime, you can manually change the code on your CatListDisplayer.php file, search for this: private function get_post_title($single, $tag = null, $css_class = null){ return ‘<a href=”‘ . get_permalink($single->ID).'”>’ . $single->post_title . ‘</a>’; } Remove the a … Read more
In the category link URL, add he category ID. Then when you click the link, the page reads the $_GET variable and use this to fetch posts with that category. You can use get_posts.