Posts

Get first post WORDPRESS tutorial

Edit your functions.php of your themes. This also work on amp plugin (wp AMP ninja) -> Edit on functions.php too. Codes 1: <?php /* These functions are great for WordPress sites with posts and media that have been imported. Some images are featured images, some in the content itself, and of the content images, some are internal, others external. These images are grabbed to use at the correct size for archive/homepage thumbnails*/ 1) Look for featured image, show if present 2) Otherwise look for the first image in the content (whether internal or external) 3) Check for an attachment ID, if present, show image at correct dimensions 4) Otherwise show image at normal URL $size = post thumbnail / custom image sizes $url = return a URL or full image tag */ /*Find the image id from a URL*/ function url_get_image_id($image_url) { global $wpdb; $attachment = $wpdb->get_col($wpdb->prepare("SELECT ID FROM $wpdb->posts WHERE guid='%s';

SEE THE BLOG POSITION IN SEARCH ENGINE

Image
There is one of the bloggers on the comments asking about how to blog can search on google. Virtually every we post a new article or we update Google has a direct index of our posts. There may be some need to wait a few hours, but usually no more than 24 hours. Furthermore, how we can see the position of our posts on the blog or search engine owned by Google. If the position is under a hundred may not be a problem to find. But the problem of how if it is above one hundred and even several hundred, of course we are a little difficult to find it. Here there is a service that may be my friend try. We can use this service to find out the position keberapa key words that we use on the blog. Usually the first time Google will index the keywords in the title of the article that we make, so we have to utilize well in making titles. In this layanana friend just enter the blog address and keywords friend use. To start taking advantage of these services friend can go to: http://www.seo

how to fix mdadm.conf defines no arrays on UBUNTU SERVER 16.04

Image
While performing reports on Ubuntu server 16.04 we see the accompanying cautioning. (Tolerating it is a notice, it is none-the-less irritating). Setting up initramfs-tools (0.122ubuntu8.3) ... update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.122ubuntu8.3) ... update-initramfs: Generating /boot/initrd.img-4.4.0-38-generic W: mdadm: /etc/mdadm/mdadm.conf defines no arrays. The notice is shown at whatever point there's no Exhibit line in mdadm.conf The least complex fix for this notice is to add the accompanying line to the finish of/and so on/mdadm/mdadm.conf ARRAY <ignore> devices=/dev/sda

Beware Google DeIndex! Read the 12 Causes and Solutions Here

Image
The solutions and causes of Google deindex. Ever felt hit deindex? One of the blogs that I manage, had experienced it. Getting blogs netted deindexed is terrible. Although only one violation you committed, the fact is Google will wipe your entire domain. Want to quickly overcome Google deindex to get back to normal. Unfortunately, this can not be completed overnight. In such situations, the phrase ' better to prevent than to cure ' is more clearly defined. Google deindex penalty becomes the most bitter experience of a blogger than denied Adsense. Both make the spirit of blogging directly shutdown. Traffic drops dramatically. All the pageone articles disappeared somewhere hidden. The effect really makes a somersault. The best way out is to try to find a reason and understand why Google has the heart to drop a deindex penalty on your website. How To Know Blogs Get DeIndex Google Deindex is the disappearance of website content in Google search engine search re

MAKE A HORIZONTAL MENU NAVIGATION

Image
Maybe my friend already familiar with the name of the menu horizontally. Here I will make a simple horizontal navigation menu which is more easily applied to a template. The menu is usually located below the header. Below is a picture of a horizontal navigation menu that we will create. We just toward how to make it. Sign in to your blog Choose a layout or design. Click add gadgets. Choose HTML / Java Script. Then enter the code below. <style type="text/css"> /*----------------------------------*/ .Nav a { width: auto; height: auto; text-decoration: none; } .Nav a { text-align: center; text-decoration:none;color:#ffffcc; padding:1px 20px 1px 20px;font-weight:bold; font-size:12px; } .Nav a:hover {padding:3px 20px 3px; 20px; text-align:center; text-decoration:none; color:#000033; font-weight:bold; border:3px; background-color: #000000;} </style> <div style="border: 3px solid #ffcc99; height:px;background-color:#FF3366;"> <div

border-radius dan -moz-border-radius

Image
Salah satu sifat CSS3 yang paling ditunggu adalah  border-radius  .   Perancang web tidak lagi harus menggunakan struktur tabel yang rumit menggunakan grafik sudut khusus atau termasuk file JavaScript misterius untuk menghasilkan desain dengan sudut yang membulat. Sementara Internet Explorer sebelum IE9 tidak mendukung banyak (atau ada) sifat CSS lanjutan, Mozilla (Firefox dan peramban terkait) dan WebKit (  mesin peramban web  Apple yang digunakan di  Safari  dan  Chrome  ) dan Opera telah mendukungnya selama bertahun-tahun. Awalan vendor (  -moz  ,  -webkit  ) sekarang tidak lagi diperlukan untuk rilis peramban terbaru karena mereka semua mengadopsi sintaks CSS3 resmi. 1.  Definisi dan sintaks untuk border-radius Seperti banyak properti CSS yang berkaitan dengan margin, padding dan border, ada empat properti individual - satu untuk setiap sudut elemen kotak - dan satu properti singkat.   Masing-masing atribut sudut akan menerima satu atau dua nilai. Properti  border-radius  

SOME TYPES OF BORDER CSS

Image
Css border or so-called border css these properties could allow us to determine the style and the border color of an element. Here I will give some examples of commonly used and may be useful. SOME TYPES OF BORDER CSS 1. none 2. dotted 3. dashed 4. solid 5. double 6. groove 7. ridge 8. inset 9. outset : Do not define the border line : Defines a dotted line border. : Defines a dotted line border. Defining a full line border. Defining a double line border. : Defines a 3D grooved border line. : Defines a 3D ridged border line. : Defines a 3D inset border line. : Defines a 3D outset border line. How to use it: none <p style = "border: 3px none; # 000000; padding: 20px;"> Do not define the border line </ p> Does not define the border line dotted <p style = "border: 3px dotted; # 000000; padding: 20px; align: center;"> Defines a dotted line border. </ p> Defining a dotted line border. dashed <p