Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)
  • Thread Starter pikamo

    (@pikamo)

    hi; i have this code:

    global $wpdb;
    $per_page = 5;
    $page = isset( $_GET['cpage'] ) ? abs( (int) $_GET['cpage'] ) : 1;
    if ($page > 1) {
        $offset = $page * $per_page - $per_page;
    } else {
        $offset = $page;
    }
    $the_post = "select id,post_title from $wpdb->posts where post_type in ('buy','rent') and post_status='publish' "
            . "order by id desc limit $per_page offset $offset";
    $details = $wpdb->get_results($the_post, OBJECT);
    //do foreach to display your post details.
    
    //paste this, where you want to display the pagination
    $total = $wpdb->get_var("SELECT count(id) from $wpdb->posts where post_type in ('buy','rent') and post_status='publish' order by id desc");
    echo paginate_links(array(
        'base' => add_query_arg('cpage', '%#%'),
        'format' => '',
        'prev_text' => __('«'),
        'next_text' => __('»'),
        'total' => ceil($total / $per_page),
        'current' => $page
    ));

    but hi not give me the first records !!

    Forum: Fixing WordPress
    In reply to: plugin with option
    Thread Starter pikamo

    (@pikamo)

    thanks

    • This reply was modified 5 years, 9 months ago by pikamo.
    Thread Starter pikamo

    (@pikamo)

    thanks guys

    Thread Starter pikamo

    (@pikamo)

    hi,
    I fear if I do the update I lose the data of my site.

    Thread Starter pikamo

    (@pikamo)

    #imp option[value=”user1″]
    {
    color:red;
    }
    #imp option[value=”user2″]
    {
    color:#ffc000;
    }

    Thread Starter pikamo

    (@pikamo)

    the slot management must be enabled if you want to use table reservation.

    Thread Starter pikamo

    (@pikamo)

    Resolved

    Thread Starter pikamo

    (@pikamo)

    i used the

    %meta:somemegatag% Any custom meta tag
    and i put the meta of the price and stock

    Thread Starter pikamo

    (@pikamo)

    thanks.
    There are any methode to create this without Revolution slider?
    I want to show the price and quantity stock for every product inside slider (dynamic)

    Thread Starter pikamo

    (@pikamo)

    My client buyed it

    Thread Starter pikamo

    (@pikamo)

    hi,

    But the date is in pulings not in the theme.
    I mead a widget pluing for showing the cunrent date.

    Thread Starter pikamo

    (@pikamo)

    thanks

    thanks gVectors Team,
    i have probelem this langage so tha effect in the pluing.
    Now i fixed 80% tha probelm of langage anf he work for me the css of pluing
    thanks again
    but i want to remove the link href of the author
    so i want to use only the nickname without the link ?

    Thread Starter pikamo

    (@pikamo)

    sorry, my englsih so bad =)

    Hi,

    i have problem in css with the pluning.
    you can see

    i have add:
    <html dir="rtl" lang="ar-AR">

    the langage of arbic is with function so i must keep my admin langage in french.

    function lang_theme_setup()
    {
    load_theme_textdomain('dazzling', get_template_directory() . '/languages');
    }
    
    function change_locale(){ return 'ar_AR'; }
    add_action('after_setup_theme', 'lang_theme_setup');
      add_filter( 'locale', 'change_locale' );
      load_textdomain('dazzling', get_template_directory().'/languages/ar_AR.mo');
      load_default_textdomain();
    
     function dazzling_setup() {
    
      /*
       * Make theme available for translation.
       * Translations can be filed in the /languages/ directory.
       * If you're building a theme based on Dazzling, use a find and replace
       * to change 'dazzling' to the name of your theme in all the template files
       */
      /*load_theme_textdomain( 'dazzling', get_template_directory() . '/languages' );*/
      add_action('after_setup_theme', 'lang_theme_setup');
      add_filter( 'locale', 'change_locale' );
      load_textdomain('dazzling', get_template_directory().'/languages/ar_AR.mo');
      load_default_textdomain();

    i have add also css

    #wpcomm .wc-comment-footer{
         text-align: left;
    }
    #wpcomm .wc-comment-text{
         text-align: right !important;
    }
    #wpcomm .wc-reply { margin-bottom: 0; margin-left: 0px!important; margin-right: 40px!important; margin-top: 10px; }
    #wpcomm .wc_comment_level-3{margin-left: 0px!important; margin-right:40px!important;}
    #wpcomm .wc_comment_level-4{margin-left: 0px!important; margin-right:40px!important;}
    #wpcomm .wc_comment_level-5{margin-left: 0px!important; margin-right:40px!important;}

Viewing 15 replies - 1 through 15 (of 21 total)