News Update :

PageRank update in December 2013

By: omer nawaz on Saturday, 28 February 2015 | 01:13

Saturday, 28 February 2015

When everyone said was dead PageRank, Google surprised and made a new update on this year end. For those unfamiliar with PageRank, is a "popularity index" of websites and blogs that receive grades from 0 to 10. See this article how to tell if your PageRank has changed and what it means for your blog.

PageRank updates always of concern when published. Although many insist that the index is already dead, Google continues to display the content on your toolbar and how far it happened in this latest update. To get an idea, the latest update before this took place in February 2013!

This update was a curious reason: it was not a problem on Google servers. When retrieving data was made ​​technically simpler PageRank data as the original data of February. 
Then it was an almost accidental update. The story was confirmed on Twitter by Matt Cutts.

The index alone means almost nothing, nor guarantee that your visitors will increase or increase. It simply represents the quantity and quality of sites that link to your blog or website.

To give a new concept on PageRank , there are some different things:
    Use the PageRank Status Extension for Google Chrome.
    Check the PR Checker Site.
    Install the Google Toolbar in Internet Explorer.

The update came in good time! As soon as the data for the "will show Top Blogger of the Spanish Language 2013 ", the range of all blogs will be evaluated in its current PageRank.

Already anticipating the answer to the question that many ask: is impossible to know when the next update PageRank, and even if there will be a new update.

If the PageRank of your blog up is a time to celebrate, that mean that Google reward for your blog, however if you lower the time to consider that things have gone wrong in recent months.
comments | |

How to create links to your blog post

How to create links within an entry is one question that many people ask and do not know they can create links that point to a particular point in a post on your blog. It is a very useful feature when you want to indicate a specific piece of text, without the reader having to look for it. It is also useful if you're writing a lengthy article and would facilitate navigation of the reader. Discover how easy it is to use the resource.


See how it works
Actually, this is a fairly old HTML feature, but is rarely used in blogs. The only point which is well used more is on the buttons to return to the beginning of the blog. But, as I said earlier, may be helpful in providing tickets for the life of your reader.
Two steps are necessary to use it (and you can click on the titles to go directly to each item):
1. Mark the points where the links are highlighted
2. Create the links pointing to the desired point

Then you will see in detail how.
1. Mark the points where the links are highlighted

The first step is to mark the point where the link points. One difficulty is that neither the publisher nor Blogger or Windows Live Writer allows you to create automatically the marking, and you must edit the HTML code to manually put the code. However, it is quite simple.
Watch the HTML code, the point where the hubs should be as in the following example:
<Name = " introduction "> </a> introduction
Text marked in blue does not appear on your page should be different at every point where there will be a link pointing to the entrance.
Red text is the code snippet shown on your page now. It may be a caption or just a word into the post.

Using as an example the subtitle this section you are reading, looked like this:

<H2 align = "justify"> <a name = "pointmarks" & gt; 1. Mark the points where the links are highlighted </a> </ h2>

Do this on all points where You will aim links.

2. Create the links pointing to the desired point

The second step is to create the desired point to point in your post link. This is easier to do in Windows Live Writer, because provides this functionality. In Blogger, you must have a manual adjustment.

To do this, do it like a normal link: select the text fragment that if transformed into link and click on the link button (or press the CTRL + K). Open the window to set the hook.

As an example, we will create a link with the text "sees the introduction," the site we created in the previous article. Instead of typing the address to which the link will point you must fill only # introduction. Another important point is that the table indicates that the link will open in a new window should be deleted.

How to create links within the post Windows Live Writer
In Windows Live Writer, the link will be created successfully and will be as follows:
<A href = "# introduction" & gt; Go to </a> introduction

b) Blogger Editor

In Blogger, you need to go to HTML and fix the link. It is created as the example below.
<A href = "http: // # introduction" Go to the introduction </ a>
IMPORTANT: you must leave this fix to be done only after completing their publication. This is necessary because, if you return to editor mode "write", he will get into your code. Therefore, you must fix all links at once and click "Post" to prevent the code is changed.

c) Create links to specific points of other inputs

Links can also be created for other inputs. Here is an example when you click preview, which will take you to that item in another article. The only difference is that you must specify how to link the address of the page and choose where you want to point.


Although it is a simple, is a bit annoying to use because of the limitations of the editors. But, with a little care and patience, you can use it without much difficulty.

It can be a key differentiator for your readers!
comments | |

How to check and index all the pages in Google Blog

By: omer nawaz on Friday, 27 February 2015 | 01:05

Friday, 27 February 2015

Having all blog pages indexed in Google can help generate more hits, so it is worth checking if your blog is properly indexed in Google. It is easy to make and you can use Google Webmaster tools to submit your sitemaps and improve your position in search results on Google.


 If your blog or website appears in the search results Google is very simple, just put the web tag: before the address of your blog, this facilitates the search for Google only within your blog, for example:

This will show how many pages of your website appear in Google (see other useful features of Google). You may notice that the number of results is much higher than the number of entries, but that's normal because Google can index the pages of markers blog, archives and other pages.

To enable Google to find all your pages of your blog using Google Webmaster tools and sends a sitemap of your blog. Upon entering the site webmaster tools from the Trace menu and click Sitemaps.

Then click add sitemap and use this code and click send:

/Atom.xml? redirect = false & start-index = 1 & max-results = 500

Submit Blog Sitemap to Google

This makes 500 index entries in your blog, if you have more than this number of entries added a sitemap, but use code like this:

/Atom.xml? redirect = false & start-index = 501 & max-results = 500

Look, the only thing that has changed is the rate of passage = 501, so this second site map your posts indexed from 501 to 1000. If you have more than 1000 entries in your blog added a sitemap, but using index = 1001 and so on to make sure all your messages appear in Google.

This is a basic fact that bloggers more to do to create your first blog, but you need to make changes to the sitemaps as a growing number of posts on your blog, so if this is your case verifies the number of posts on your blog and not exceeding the amount of indexed entries and update your sitemap.

We often forget to change this setting over time and thereby indexing various positions are lost and do not generate the amount of visits you should have your blog.
comments | |

Top 15 web directories where your business should be included

These 15 tools can help you:

§  Get more links to your business website and improve its position in SEO.
§  Listing your business in maps and services like MapQuest driving directions and Google Maps.


1. Google Places

One of the major online directories that you should consider is Google Places . With this solution, your business can be easily found on Google search, Maps, Google +, and mobile devices. You can also respond to customer feedback and see statistics on who is viewing your profile and where they are coming.

2. Yelp

Yelp customer reviews business in their city. In addition to basic business information you can also add photos, coupons, a brief history of your company, and more. It may also be able to respond to criticism of its customers and view statistics for your profile.

3. Bing

Bing lets you manage your local business directory on Bing. You can add your logo, photos, menus, offers and other important information.

4. Yahoo!

Yahoo! is another popular search engine which is still used by many internet users some of which may also be potential customers. As mentioned ads, Yahoo basic listing is free, however there are also plans some improved payment options for you to add more photos, a detailed description of business or automatic Listings in many directories.

5. Facebook

Facebook is not only a powerful tool for socializing with friends, but also find reviews and information about the companies. This is especially important if your target audience is more likely to seek social proof when considering different options mainly young customers .

6. YouTube

If you are running a business that is almost certain that you can display your products, record an interview, business office or just a fun video of you and your team have fun while working.
This is a great idea to increase your chances of getting quality visitors from the search engine results. In addition, you have a great opportunity to have an attractive thumbnail shown next to its title page, which should increase the impact even more.
So once you have created the Google account, just start adding your official profile short YouTube videos.

7. YellowPages

YellowPages provides local business listings and advertising solutions for businesses . As a business owner you can add / claim your listing and include any important information.

8. Citysearch

Citysearch is an online guide for business and entertainment in your city . As a business owner you can add / claim your listing and include any important information or add special offers. You can also view statistics to see how many people visit your profile page.

9. Foursquare

Foursquare is a perfect place for many companies. It is popular among the younger generation who like to check in several places, take pictures, provide product reviews and earn badges for repeat visits.
If you are thinking of attracting a younger audience and want to play around with some gamification, then Foursquare should be a safe bet.

10. Manta

Manta is a directory of easy and intuitive companies will no longer take only a few seconds to put your brand in the directory, just go here , fill the data and display your business to attract the attention of potential customers .

11. Merchant Circle

Merchant Circle is a directory of local businesses that provide reviews, offers and tips. As a business owner you can add / claim your business listing and improve it by adding coupons, newsletters, respond to reviews, and more.

12. Super Pages

Super Pages is an online business directory offering local programming business, reviews and advertising solutions . As a business owner you can add / Business Claim your listing and include any important information, create offers, respond to user feedback, and more.

13. LinkedIn

LinkedIn allows you to create a public "Company Page" for your business. Your business page will be linked to the profiles of its employees in LinkedIn (when you advertise your company or your employer).

14. Hot Frog

Hot Frog is a business search engine which receives about 1.5 million visitors a month . As a business owner you can add / claim your business listing and add photos, create offers and more. They also offer reporting tools to see which keywords are driving the most traffic to their business profile page.

15. Yellow Magic

Yellow Magic is a directory of companies offering local business listings and reviews . As a business owner you can add / claim your listing and include any important information.
comments | |


By: omer nawaz on Thursday, 26 February 2015 | 00:52

Thursday, 26 February 2015

Create the kind Parallax post:


function add_theme_scripts() {

wp_enqueue_script( 'parallax', get_template_directory_uri() . '/js/jquery.parallax-1.1.3.js', array(), '1.1.3', true );

                        wp_enqueue_script( 'nicescroll', get_template_directory_uri() . '/js/jquery.nicescroll.min.js', array(), '3.5.1', true );


        add_action( 'wp_enqueue_scripts', 'add_theme_scripts' );

        function custom_post_type() {
                    $labels = array(
                        'name'               => _x( 'Parallax', 'general name' ),
                        'singular_name'      => _x( 'Parallax', 'singular name' ),
                        'add_new'            => _x( 'Ajouter un nouveau', 'parallax' ),
                        'add_new_item'       => __( 'Ajouter un parallax' ),
                        'edit_item'          => __( 'Edit Page' ),
                        'new_item'           => __( 'Nouveau parallax' ),
                        'all_items'          => __( 'All Pages' ),
                        'view_item'          => __( 'View Page' ),
                        'search_items'       => __( 'Search Pages' ),
                        'not_found'          => __( 'No pages found' ),
                        'not_found_in_trash' => __( 'No pages found in the Trash' ),
                        'parent_item_colon'  => '',
                        'menu_name'          => 'Parallax'
                    $args = array(
                        'labels'        => $labels,
                        'public'        => true,
                        'menu_position' => null,
                        'supports'      => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments', 'page-attributes' ),
                        'has_archive'   => true,
                    register_post_type(__( 'parallax' ), $args);
                add_action( 'init', 'custom_post_type' );
comments | |

Start a scan with MTR

To find out if there are losses during data transfer between your network and server. MTR software can help you.


Install MTR

Run the command:

sudo /usr/local/sbin/mtr -r

 Application for Mac


Each host in the left column is a "stretch" or, if you prefer, a network component. It represents a unit of equipment in which the signal leaving your computer must pass to reach the server. If you discover that a particular host lost data packets, it is probable that it is the unit where the problem lies. The first host in which the signal passes is the equipment in your home network. Then there is the equipment of your Internet service provider; then the signal joined VIWeb equipment, and finally your server. If you spot a problem in the first sections, please contact your ISP first. If you spot a problem in the last sections, you can still perform some operations to help identify its origin.
comments | |

Secure access to the WordPress administration via SSL

By: omer nawaz on Wednesday, 25 February 2015 | 16:29

Wednesday, 25 February 2015

To increase the security of your data and the connection of torque, it is best to force encryption of your connection to avoid being hacked them. 

In other words have a https: // that integrates an SSL key

There are extensions, but it is always better to have the least possible extension.

In your wp-config.php file, you can add this line:

define('FORCE_SSL_LOGIN', true);
comments | |

Translate a website with WPML - PHP code in the theme

If you wish to translate a website with WordPress , WPML is a very good solution for the design of multilingual site.

Web-site-translated-WordPress-WPMLFirst, it is important to understand that WordPress is designed in English, then translated from English into another language.


 So if we want to build a theme that can be translated , we will put the content in English and wrap a tag that will allow us to translate it later in the desired language.

Here is the PHP code to wrap the HTML you want to translate:

<?php _e('English HTML content','theme-text-domain');?>

<div id="booking"><?php echo _e('<a href="#">My Links</a>','theme-text-domain');?></div>
theme-text-domain must be changed to the name of your theme, you can find the name of the template in your style.css sheet

location-the-theme-wpmlThen go to the dashboard:

WPML / theme Location and extension modules

Click  Apply below Translate with .mo file

WPML will search for new PHP tag inserted in the theme.

Translation-de-strings-wpmlGo to  WPML / chains Translation

You are now ready to translate from English to French.
comments | |

WPML customize menu

By: omer nawaz on Tuesday, 24 February 2015 | 16:23

Tuesday, 24 February 2015

<ul class="lang-switcher">
                                       $languages =     icl_get_languages('skip_missing=N&orderby=KEY&order=DIR&link_empty_to=str');
                                       foreach($languages as $language){
                                       $flag = $language['country_flag_url'];
                                       $url =  $language['url'];
                                       $isActive = $language['active'];

$name = $language['language_code']
                                   <li><a href="<?php echo $url; ?>" <?php if($isActive == 1){ ?> class="active" <?php } ?>>
                                           <?php echo $name; ?>
                                   <?php } ?>
comments | |

Add in the side bar custom events - The events calendar

<h3>Événements à venir</h3>
    $cat_array = array();
      'post_type' => 'tribe_events',
      'post_status' => 'publish',
      'posts_per_page' => 10,
      'caller_get_posts'=> 1
    $my_query = null;
    $my_query = new WP_Query($args);
    if( $my_query->have_posts() ) {
      while ($my_query->have_posts()) : $my_query->the_post();
        $cat_args=array('orderby' => 'none');
        $cats = wp_get_post_terms( $post->ID , 'tribe_events_cat', $cat_args);
        foreach($cats as $cat) {
          $cat_array[$cat->term_id] = $cat->term_id;
    if ($cat_array) {
      foreach($cat_array as $cat) {
        $category = get_term_by('ID',$cat, 'tribe_events_cat');
        echo "<div class='tribe-mini-calendar-list-wrapper'>";
          echo '<div class="upcoming-cat tribe-events-category-'.$category->slug.'">';
        echo "<h3 class='cat-title'>".$category->name."</h3>";
        $eventpost = new WP_Query(array('post_type' => 'tribe_events', 'taxonomy' => 'tribe_events_cat', 'posts_per_page' => 5, 'term' => $category->slug));
        while ($eventpost->have_posts()): $eventpost->the_post(); ?>
            <!-- ><h2 class="entry-title summary new-title"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2> -->
            <div class="duration dates1">
                <a href="<?php the_permalink();?>"><span class="date-start dtstart new-date"><?php the_field('date_personnalise');?></span></a></div>
        <?php endwhile;
        echo "</div></div>";
        //echo '<a href="' . esc_attr(get_term_link($category, 'tribe_events_cat')) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a>'.'<br />';
        echo "No More Upcoming Events";
comments | |

The update of the extension to failed - WordPress

If you have trouble putting your extensions updated with WordPress, a message that is similar to:
You may have a problem on Ownership of your files.
The upload files can’t not be move to the files wp-content/
  • Downloading update from
  • Unpacking the update
  • Deactivating the plugin
  • Removing the old version of the plugin
  • Could not remove the old plugin
  • Plugin upgrade Failed
This is probably a permission problem.
comments | |

Information on the post / page - Category

By: omer nawaz on Monday, 23 February 2015 | 13:05

Monday, 23 February 2015

To add to the loop (even if the information is not used in the loop):

<?php $categories = get_the_category();
If it does not work:


<?php foreach((get_the_category()) as $category) {
If a page category:

<?php $categories = get_category( get_query_var( 'cat' ) );
$nom=$categories->cat_name; ?>
Then reuse the information in the variables, it remains only display:

<?php echo $nom;?>
Want to see the information in the table? Very well!

<?php var_dump($categories); ?>
comments | |

ClamAv | Logiciel Anti virus pour vos courriels

1 -To connect to your server

You must use a terminal to connect

2 - Update the basic definition of virus

This take-days known to date to detect viruses

3- Run the scan and quarantine


 This command put the quarantined files in the VIRUS folder.

/usr/local/cpanel/3rdparty/bin/clamscan -r --move=/home/USER/VIRUS /home
4 - Start the scan and delete the virus server

/usr/local/cpanel/3rdparty/bin/clamscan -r --remove /home
See options

clamscan --help
comments | |

Scanner with its server Maldet

By: omer nawaz on Sunday, 22 February 2015 | 12:50

Sunday, 22 February 2015

Linux Malware Detect is a malware detection application for your server. This is a free GNU GPLv2 license.


Install Maldet its seveur

It is best to roll the script Screen

To launch the software must be connect to your server:
comments | |

CSF - Attack - Check the IP attacking SSH

When the website undergone attack can be installed on the server CSF.

CSF will allow us to see that line of code IP attack site and then block the IP in the firewall.

netstat -n | grep ':80' | awk -F' ' '{print $5}' | awk -F':' '{print
$1}' | sort | uniq -c | sort -n
comments | |

Request to the server according to custom fields and a post-type

By: omer nawaz on Saturday, 21 February 2015 | 12:28

Saturday, 21 February 2015

Just a moment, or we need to invoke Article according to custom fields. Ex .: Call all that is blue and small in there.

The first step is to create a post type and then install ACF Advanced Custom Field. Types does too, but experience ACF is Simpler to manage.


Consequently we will create custom fields for our Post Type.

        'post_type' => 'evenement',
        'cat'      => 2, // La catégorie visée
        'meta_query' => array(
                    'key' => 'date', // Le champ personnalisé
                    'value' => '"19"', // La valeur désiré
                    'compare' => 'LIKE', //
    ) ); 
<?php while (have_posts()) : the_post(); ?>
        <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
        <p><?php echo get_the_excerpt(); ?></p>
<?php endwhile;?></li>
comments | |

Make a request categories

Sometimes we want to query category and not articles. Here's how to handle this type of request.

                //list terms in a given taxonomy using wp_list_categories  (also useful as a widget)
                $orderby = 'name';
                $show_count = 0; // 1 for yes, 0 for no
                $pad_counts = 0; // 1 for yes, 0 for no
                $hierarchical = 1; // 1 for yes, 0 for no
                $taxonomy = 'ste-adele';
                $title = '';

                $args = array(
                    'post_type' => 'membre',
                  'orderby' => $orderby,
                  'show_count' => $show_count,
                  'pad_counts' => $pad_counts,
                  'hierarchical' => $hierarchical,
                  'taxonomy' => $taxonomy,
                  'title_li' => $title

$args = array(
                    'type'                     => 'membre',
                    'child_of'                 => 0,
                    'parent'                   => '832',
                    'orderby'                  => 'name',
                    'order'                    => 'ASC',
                    'hide_empty'               => 1,
                    'hierarchical'             => 1,
                    'exclude'                  => '',
                    'include'                  => '',
                    'number'                   => '',
                    'taxonomy'                 => 'ste-adele',
                    'pad_counts'               => false


  'orderby' => 'name',
  //'parent' => '5',
  'order' => 'ASC',
  'hide_empty' => '0'
  foreach($categories as $category) {
    $output = '
   <div class="' . $category->slug . '">
                <h3>' . $category->name . '</h3>
                <img src="' . get_bloginfo( 'template_url' ) . '/images/categories/' . $category->slug . '_feature.jpg" alt="' . $category->name .'" />
                <p>' . $category->description .'</p>

                global $post;
                $args = array( 'numberposts' => 3, 'category' => $category->term_id );
$myposts = get_posts( $args );
foreach( $myposts as $post ) :  setup_postdata($post);
        $output .=  '<li><a href="' . get_permalink($post->ID) . '">' . get_the_title($post->ID) . '</a></li>';
        $output .=  '
                <li><a href="' . get_category_link( $category->term_id ) . '">More...</a></li>
                <br />
echo $output;
comments | |

Query Post - Post types - Taxonomy

By: omer nawaz on Friday, 20 February 2015 | 11:28

Friday, 20 February 2015

If you created a post guy, you probably also created one or more taxonomy.

Class or taxonomy?

In fact when we created a taxonomy or low call category :)


In our case:

I created a post type called System and added a taxonomy system called Category:


On this page you can see at:

/wp-admin/edit-tags.php?taxonomy= our products & post_type = system

In the address that give us two important information to build our request.

taxonomy = our-products
post_type = system

Then if you want to call air conditioners must rely on the identifier.

air conditioners

So the query will be, to call all the air conditioner:

// La requête au serveur
    $args = array( 
        'post_type' => 'systeme',
        'nos-produits' => 'climatiseurs', 
        'posts_per_page' => -1 

    // Le résultat
    $the_query = new WP_Query( $args );

    // La boucle
    <?php if( $the_query->have_posts() ): ?>
        <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
                <div class="img-vedette">
                    Votre HTML
        <?php endwhile; ?>

    <?php endif; ?>

<?php wp_reset_query();  // Réinitialiser la requête ?>
comments | |

Logical condition that the page - home page is If ... Else ...

When we built a theme it is always better to have the warning possible page. 

For simplicity above all. When returns to a website after a while there is much more easily.

So for example, instead of a different footer to the home page and interior pages. We can only use conditions, such as:


If this is the home page:

Do this: ....

If this is not the home page

Do this: ... ..

If not you need to create a new file, for example footer-home.php. For maintenance or modifications it complicates our lives and we can create errors by changing one but not the other.


if ( is_front_page() && is_home() ) {
  // Default homepage
} elseif ( is_front_page() ) {
  // static homepage
} elseif ( is_home() ) {
  // blog page
} else {
  //everything else

If you want to code with HTML:

 <?php if ( is_front_page()) : ?>

 <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo-accueil.png" width="326" height="184" alt="Logo"/>

 <?php endif; ?>
If this is not the home page (must be added the exclamation point)

 <?php if ( !is_front_page()) : ?>

 <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/logo-diane-limoges-inner-en.png" width="263" height="162" alt="Logo Diane Limoges"/>

 <?php endif; ?>
Conditions in the footer

I have not done further research but if it does not work in the footer, you must reset the Global value if you use this function in the footer:

wp_reset_query ()

<?php wp_reset_query(); ?>
<?php if ( is_front_page()) : ?>

<p>Ça marche</p>

<?php endif; ?>
comments | |

The update of the extension to failed - WordPress

By: omer nawaz on Thursday, 19 February 2015 | 11:10

Thursday, 19 February 2015

If you have trouble putting your extensions updated with WordPress, a message that is similar to:

You may have a problem on Ownership of your files.

The upload files can’t not be move to the files wp-content/ ..


Downloading update from
Unpacking the update
Deactivating the plugin
Removing the old version of the plugin
Could not remove the old plugin
Plugin upgrade Failed
This is probably a permission problem.

With your device you can run the command:

/home/ user

user is the folder of your user on your WHM.
comments | |

CSF - Attack - Check the IP attacking SSH

When the website undergone attack can be installed on the server CSF. 


CSF will allow us to see that line of code IP attack site and then block the IP in the firewall.

netstat -n | grep ':80' | awk -F' ' '{print $5}' | awk -F':' '{print
$1}' | sort | uniq -c | sort -n
comments | |

Enrigistrer a new menu in WordPress

By: omer nawaz on Wednesday, 18 February 2015 | 10:56

Wednesday, 18 February 2015

By default, WordPress has two menus ; Primary and Secondary Menu top menu. If for example you want to add a sub menu at the top of the website, you must first create a menu in functions.php and then in the theme call up the menu in question.

Save a menu in WordPress

In your file f unctions.php , add the following line:

// Preregister UN Noumea menu
register_sub_menu( 'secondary', __( 'Secondary', 'twenty twelve' ) );


Add a menu in WordPress theme

Then you can add the following lines in your chart:

<sub id="tremendous" role="navigation">
  <h3><?php wp_sub_menu( array( 'theme_location' => 'secondary' ) ); ?></h3>

Create a new menu in WordPress dashboard

Finally, you must create a new menu in the WordPress dashboard and check the menu in question.
comments | |

Query WordPress post - Request to database

A database is convenient, even if one is able to evade the desired information. The following example can be applied to one article or Post Type personalize.

The first step is to assign the arguments, in other words; whom, in what category, how .$ Arg = ... ..


Creating the Loop

Close the loop

Reinstall the loop

post_type: Your guy, if you want to delete items by default.

// The Query

 $args = array(

'post_type' => 'votre_post_type',
 'posts_per_page'=> '1'
 $query = new WP_Query( $args );

 // The Loop
 if ( $query->have_posts() ) {
 while ( $query->have_posts() ) {

 <ul class="row">

 <?php the_title(); ?>

 } ?>

<?php wp_reset_query(); // Réinitialiser la requête ?>
comments | |

Execute a command in a detached window

By: omer nawaz on Tuesday, 17 February 2015 | 08:43

Tuesday, 17 February 2015

It is best to run a script that takes some time in an external window. The script will run in the background and are not going to be interrupted if your computer is closed.

Connection to your server

ssh root@votreip


Naming your screen

screen -S nomduscreen

Detach from the screen

You can click on Ctrl tracking ad
This allows you to close the window but leave the script run
Attach to the window later

screen -r votrenomdesession



#BEGIN TJ custom cache

<IfModule mod_deflate.c>
# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html

# Don't compress images and other stuff
    SetEnvIfNoCase Request_URI \.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$ no-gzip dont-vary

# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary

#END TJ custom



<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
comments | |

How to create a member area on WordPress

If you want to create accessible content for members with a username and password, this article is for you. This tutorial is done with the platform  WordPress.

Using WordPress plugins:

Install the following plugins before starting

Advanced Access Manager -AAM  (allows to create roles by providing some level of access.)

WP Members (to provide a login page and block access to non-connected users)
PHP Code Widget   (to limit access manually)
Peter's Login Redirect (for redirection when the user logs)
Then with  AAM must create a client role, you can find tutorials with a Google search.

wp-memeberWP Members added to field a limited access to the content when you want to edit a page. Must in setting   Note: Items may be blocked or unblocked individually on the page of the article is checked.

By checking this option, only members can see the content.

If certain pages or categories are limited only to different types of users , you have to block manually in Advanced Access Manager

Limited access to content in a sidebar:

You can create PHP Code Widget protected content with the following code:

global $current_user;
if ( is_user_logged_in() && ! user_can( $current_user, "subscriber" ) ) {
    echo 'Contenu accessible seulement aux usagers connectés qui ne sont pas des abonnés (subscribers)';

Improved version with text showing who is logged

if ( is_user_logged_in()){
global $current_user;
if($current_user-> user_firstname){
echo '<p>Bienvenue,  ' . $current_user-> user_firstname.'</p>';
echo '<p>Bienvenue,  ' . $current_user-> user_login.'</p>';
if( ! user_can( $current_user, "subscriber" ) ) {
 echo '<a href="#">Lien que vous voulez faire apparaitre</a>';
comments | |

How to publish your content on Google RSS

comments | |

Time Zone - GMT

By: omer nawaz on Monday, 16 February 2015 | 19:49

Monday, 16 February 2015

(GMT-11:00) American Samoa
(GMT-11:00) International Date Line West 
(GMT-11:00) Midway Island
(GMT-10:00) Hawaii 
(GMT-09:00) Alaska
(GMT-08:00) Pacific Time (US & Canada) 
(GMT-08:00) Tijuana
(GMT-07:00) Arizona 
(GMT-07:00) Chihuahua 
(GMT-07:00) Mazatlan
(GMT-07:00) Mountain Time (US & Canada) 
(GMT-06:00) Central America
(GMT-06:00) Central Time (US & Canada) 
(GMT-06:00) Guadalajara
(GMT-06:00) Mexico City
(GMT-06:00) Monterrey 
(GMT-06:00) Saskatchewan
GMT-05:00 Bo ota
(GMT-05 00) Eastern Time (US & Canada)
(GMT-05:00) Indiana (East) 
(GMT-05:00) Lima 
(GMT-05:00) Quito 
(GMT-04:30) Caracas
(GMT-04:00) Atlantic Time (Canada) 
(GMT-04:00) Georgetown 
(GMT-04:00) La Paz
(GMT-04:00) Santiago 
(GMT-03:30) Newfoundland 
(GMT-03:00) Brasilia 
(GMT-03:00) Buenos Aires 
(GMT-03:00) Greenland 
(GMT-02:00) Mid-Atlantic 
(GMT-01:00) Azores 
(GMT-01:00) Cape Verde Is. 
(GMT+00:00) Casablanca 
(GMT+00:00) Dublin 
(GMT+00:00) Edinburgh
(GMT+00:00) Lisbon 
(GMT+00:00) London 
(GMT+00:00) Monrovia 
(GMT+00:00) UTC 
(GMT+01:00) Amsterdam 
(GMT+01:00) Belgrade 
(GMT+01:00) Berlin 
(GMT+01:00) Bern 
(GMT+01:00) Bratislava 
(GMT+01:00) Brussels 
(GMT+01:00) Budapest 
(GMT+01:00) Copenhagen 
(GMT+01:00) Ljubljana 
(GMT+01:00) Madrid 
(GMT+01:00) Paris 
(GMT+01:00) Prague 
(GMT+01:00) Rome 
(GMT+01:00) Sarajevo 
(GMT+01:00) Skopje
(GMT+01:00) Stockholm 
(GMT+01:00) Vienna 
(GMT+01:00) Warsaw 
(GMT+01:00) West Central Africa 
(GMT+01:00) Zagreb 
(GMT+02:00) Athens 
(GMT+02:00) Bucharest 
(GMT+02:00) Cairo
(GMT+02:00) Harare 
(GMT+02:00) Helsinki 
(GMT+02:00) Istanbul 
(GMT+02:00) Jerusalem 
(GMT+02:00) Kyiv 
(GMT+02:00) Pretoria 
(GMT+02:00) Riga 
(GMT+02:00) Sofia 
(GMT+02:00) Tallinn 
(GMT+02:00) Vilnius 
(GMT+03:00) Baghdad
GMT+03:00 Kuwait 
(GMT+03:00) Minsk 
(GMT+03:00) Moscow 
(GMT+03:00) Nairobi 
(GMT+03:00) Riyadh 
(GMT+03:00) St. Petersburg 
(GMT+03: 00) Volgograd 
(GMT+03:30) Tehran 
(GMT+04:00) Abu Dhabi 
(GMT+04:00) Baku 
(GMT+04:00) Muscat 
(GMT+04:00) Tbilisi 
(GMT+04:00) Yerevan 
(GMT+04:30) Kabul 
(GMT+05:00) Ekaterinburg 
(GMT+05:00) Islamabad 
(GMT+05:00) Karachi 
(GMT+05:00) Tashkent 
(GMT+05:30) Chennai 
GMT+05:30 Kolkata
(GMT+05:30) Mumbai 
(GMT+05:30) New Delhi 
(GMT+05:30) Sri Jayawardenepura 
(GMT+05:45) Kathmandu 
(GMT+06:00) Almaty
(GMT+06:00) Astana 
(GMT+06:00) Dhaka 
(GMT+06:00) Novosibirsk 
(GMT+06:00) Urumqi 
(GMT+06:30) Rangoon 
(GMT+07:00) Bangkok 
(GMT+07:00) Hanoi 
(GMT+07:00) Jakarta 
(GMT+07:00) Krasnoyarsk 
(GMT+08:00) Beijing 
(GMT+08:00) Chongqing 
(GMT+08:00) Hong Kong 
(GMT+08:00) Irkutsk 
(GMT+08:00) Kuala Lumpur
(GMT+08:00) Perth 
(GMT+08:00) Singapore 
(GMT+08:00) Taipei 
(GMT+08:00) Ulaan Bataar 
(GMT+09:00) Osaka 
(GMT+09:00) Sapporo 
(GMT+09:00) Seoul 
(GMT+09:00) Tokyo 
(GMT+09:00) Yakutsk 
(GMT+09: 30) Adelaide 
(GMT+09:30) Darwin 
(GMT+10:00) Brisbane 
(GMT+10:00) Canberra 
(GMT+10:00) Guam 
(GMT+10:00) Hobart 
(GMT+10:00) Magadan 
(GMT+10:00) Melbourne 
(GMT+10:00) Port Moresby 
(GMT+10:00) Solomon Is.
(GMT+10:00) Sydney 
(GMT+10:00) Vladivostok 
(GMT+11:00) New Caledonia 
(GMT+12:00) Auckland 
(GMT+12:00) Fiji 
(GMT+12:00) Kamchatka 
(GMT+12:00) Marshall Is. 
(GMT+12:00) Wellington 
(GMT+13:00) Nuku'alofa 
(GMT+13:00) Samoa 
(GMT+13:00) Tokelau Is.
comments | |

The update of the extension to failed - WordPress

If you have trouble putting your extensions updated with WordPress, a message that is similar to:
You may have a problem on Ownership of your files.


The upload files can not not Be move files to the wp-content / ..

Downloading update from ..
Unpacking the update
Deactivating the plugin
Removing the old release of the plugin
Could not remove the old plugin
Failed upgrade Plugin

This is probably a permission problem.

With your device you can run the command:

/home/ user

user is the folder of your user on your WHM.
comments | |


Blog Archive

Contact Us | Privacy policy | Term of use | Advertise with Us | Site map
Copyright © 2011. Blogging Brain . All Rights Reserved.
Design Template by Blogging Brain | | Powered by Blogger