imransilvake
Forum Replies Created
-
Forum: Plugins
In reply to: [Simple Calendar - Google Calendar Plugin] events not showing on grid viewI deactivated the plugins: didn’t worked.
wp_footer also exists.
any more suggestions?Edit:
add_action( 'wp_footer', array( $this, 'localize_main_script' ) ); } public function localize_main_script() { if( $this->show_scripts ) { global $localize; wp_localize_script( GCE_PLUGIN_SLUG . '-public', 'gce_grid', $localize ); wp_localize_script( GCE_PLUGIN_SLUG . '-public', 'gce', array( 'script_debug' => ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ), 'ajaxurl' => admin_url( 'admin-ajax.php' ), 'loadingText' => __( 'Loading...', 'gce' ), ) ); } }i found this code in your plugin. when in calendar i click next or prev. the ajax works. i am also getting the loading… message as well. but clicking on the dates gives nothing.
I am explaining you what I am doing
1. First, I am making a custom theme. no other theme used.
2. Second, I have a page called ‘single.php’ for showing posts (full content of the clicked post). It directs to this page when click on a particular post.
3. Third, for showing all posts, I have a page called ‘index.php’. When you select a category, it should filter the posts and display the selected category posts which in case of using your plugin is not working.
4. On plugin Preview, Games posts are showing e.g (post 4, and post 5).
5. On plugin Preview, Music posts are showing e.g (post 29, and post 33).What I Want:
6. Using your plugin, how can I show all posts when no category is selected. (on index.php)
7. Using your plugin, how can I show only those posts when a particular category is selected. (on index.php)I think this sums up My all question.
Note: (below code does what I am asking but I want to style the Posts that’s why I am using your plugin)
index.php File:Showing MY categories:
<?php wp_list_categories('orderby=name&title_li='); ?>showing My content (Posts):
<?php while (have_posts()) : the_post(); ?> <h3> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </h3> <p><?php the_excerpt(); ?></p> <p class="text-muted">Posted by: <?php the_author(); ?> on <?php the_time('F jS, Y'); ?></p> <?php endwhile; wp_reset_query(); ?>okay next time i will post there.
you mean if I want to show posts of a music (for e.g) category only, then i need to purchase the pro version?
Yup its now start working. +1 thanks.
please edit this in your plugin also. Search shortcode for templates:
<?php echo do_shortcode('[wpdreams_ajaxsearchlite]'); ?>
instead of
<?php echo do_shortcode('[wpdreams_ajaxsearchlite'); ?>