pikamo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: plugin wp_list_table with pagination in front pagehi; 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 optionthanks
- This reply was modified 5 years, 9 months ago by pikamo.
Forum: Fixing WordPress
In reply to: php 5.5.0 and WP 4.1thanks guys
Forum: Fixing WordPress
In reply to: php 5.5.0 and WP 4.1hi,
I fear if I do the update I lose the data of my site.Forum: Plugins
In reply to: [Contact Form 7] select option color text#imp option[value=”user1″]
{
color:red;
}
#imp option[value=”user2″]
{
color:#ffc000;
}Forum: Plugins
In reply to: order_id is null in DB with Delivery Slotsthe slot management must be enabled if you want to use table reservation.
Forum: Plugins
In reply to: order_id is null in DB with Delivery SlotsResolved
Forum: Plugins
In reply to: Disply Stock in Revolution slideri used the
%meta:somemegatag% Any custom meta tag
and i put the meta of the price and stockForum: Plugins
In reply to: Disply Stock in Revolution sliderthanks.
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)Forum: Plugins
In reply to: Disply Stock in Revolution sliderMy client buyed it
Forum: Plugins
In reply to: [WP-Hijri] change only one datehi,
But the date is in pulings not in the theme.
I mead a widget pluing for showing the cunrent date.Forum: Plugins
In reply to: [Comments - wpDiscuz] link Authorthanks
Forum: Plugins
In reply to: [Comments - wpDiscuz] RTL supportthanks 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 ?Forum: Themes and Templates
In reply to: edit the title of links widgetForum: Plugins
In reply to: [Comments - wpDiscuz] RTL supportHi,
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;}