• Hello . i want to use your plugin in several themes that i wrote . but when i try on them it doesn’t work ( in other Themes like Sahifa or … when i use it works ) . . . for example i wrote a 10 like code and when i use the plugin it’s still not working . i’m sure i use the selectors right . here is the file . i will appreciate if you tell me what’s wrong with my codes …

    https://s000.tinyupload.com/index.php?file_id=13535703151553358966

    • This topic was modified 8 years, 5 months ago by armanzarei.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi,
    Is the pagination present on page? Try to add after the while cicle this the_posts_pagination() instead of wp_pagenavi()

    Also please post the plugin configuration.

    regards, have a nice day! ??

    Thread Starter armanzarei

    (@armanzarei)

    i tried to use the_posts_pagination() but still not working . i think there should be a code i should add to my template function or something…

    after u said to use the the_posts_pagination() =>>>
    Navigation Selector : .navigation
    Next Selector : .next
    Item Selector : .post
    Content Selector : #container

    if u don’t mind please check my very very Simple code and help !!! i really need to fix this …

    This Code is just for testing if it works or not :
    HTML :

    <!DOCTYPE html>
    <html>
    <head lang="en">
        <meta charset="UTF-8">
        <title></title>
        <link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css"/>
    </head>
    <body>
    <div id="container">
        <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
        <div class="post"></div>
        <?php endwhile; ?>
        <?php endif; ?>
    <?php the_posts_pagination() ?>
        
    </div>
    </body>
    </html>

    And a pretty simple css :

    #container{
        width: 700px;
        height: auto;
        margin: 0 auto;
        margin-top: 50px;
    }
    .post{
        width: 100%;
        height: 500px;
        background: red;
        margin-top: 20px;
    }
    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    I think that the selector “Next Selector” is wrong, try with this conf:
    Navigation Selector : nav.navigation
    Next Selector : nav.navigation a.next
    Item Selector : .post
    Content Selector : #container

    Let me know. Regards

    Thread Starter armanzarei

    (@armanzarei)

    Still Not Working !!! Are you Sure That there isn’t any code i should add to function.php or …
    Please Help ! i really Should Fix This

    Plugin Author YITHEMES

    (@yithemes)

    Hi,
    try to change the html code this way

    
    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    	<meta charset="<?php bloginfo( 'charset' ); ?>">
    	<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/style.css"/>
            <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>
    <div id="container">
        <?php if(have_posts()) : ?> <?php while(have_posts()) : the_post(); ?>
        <div class="post"></div>
        <?php endwhile; ?>
        <?php endif; ?>
    <?php the_posts_pagination() ?>
        
    </div>
    <?php wp_footer(); ?>
    </body>
    </html>
    

    I’ve added wp_footer() and wp_head() functions for print scripts or data on the front end.
    Let me knwow. regards ??

    Thread Starter armanzarei

    (@armanzarei)

    OMG Thank You So Much Dude … it worked <3 ThanQ

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin not working in my Theme’ is closed to new replies.