WordPress Cheat Sheet / Tags – Part 3 [Blog Info Tags]

Hello Friends

Today we are going to know the BlogInfor Tag of WordPress Theme. So, lets start-

Blog Infobloginfo();

Displays information about your blog, mostly gathered from the information you supply in your User Profile and General Options from the WordPress Administration panels (Settings > General). It can be used anywhere within a page template. This always prints a result to the browser. If you need the values for use in PHP, use get_bloginfo().

<?php bloginfo(‘show’); ?>

name

Type: String

Returns the Weblog title set in Administration > Settings > General.


description

Type: String

Returns the Tagline set in Administration > Settings > General.


admin_email

Type: String

Returns the Administrator’s E-mail address set in Administration > Settings > General.


url

Type: String

The Blog address (URI) is the URL for your blog’s web site address and is set in Administration > Settings > General.


wpurl

Type: String

The WordPress address (URI) is the URL for your WordPress installation and is set in Administration > Settings > General


WordPress Cheat Sheet / Tags – Part 2 [Author Tags]

Hello Friends,
Hope you are well. Today, I am going to introduce about the Author Tag for you. Tomorrow, we will be introduce about the Blog Info Tags. Hope, you will enjoy it. This is the second post of wordpress Tags / Cheat Sheet.

The Author the_author();

The author of a post can be displayed by using this Template Tag. This tag must be used within The Loop.

<?php the_author(); ?>

No parameters.

Get The Author get_the_author();

The author of a post can be displayed by using this Template Tag. This tag must be used within The Loop.

<?php $author = get_the_author(); ?>

No parameters.

The Author Link the_author_link();

This tag displays a link to the Website for the author of a post. The Website field is set in the user’s profile (Administration > Profile > Your Profile). The text for the link is the author’s Profile Display name publicly as field. This tag must be used within The Loop.

<?php the_author_link(); ?>

No parameters.

Continue reading

WordPress Attachment Tags

Hello Friends,
Today I want to introduce you the cheat code to the wordpress theme.  I want to post with the details about the cheat code. So, it is going to be more big. For the assist of reading, I want to slice my post in the type / category basis. Today, I want to discuss about the Attachment Tags. Tomorrow, I will discuss about the Author Tag.

List of the attachment tags-

Get Attachment Link                          get_attachment_link();
Is Attachment                                       is_attachment();
The Attachment Link                         the_attachment_link();
Attachment Is Image                         wp_attachment_is_image();
Get Attachment Image                      wp_get_attachment_image();
Get Attachment Image Source       wp_get_attachment_image_src();
Get Attachment MetaData                wp_get_attachment_metadata();

Now let me explain about the tags-

get_attachment_link();

Returns the URI of the page for an attachment.
<?php get_attachment_link(id); ?>
id
Type: Integer
The ID of the attachment.

Continue reading

My 100 post & few tips for web designer

Hello Dear,
Suvho Bangla Noboborsho 1419 (Happy Bengali New Year 1419) to you. You are reading 100th Post of my blog.  So, Basically I want to give few tips for web designer. Specially who works for designing website by CSS3. I want to say something about the tools of CSS3.  Hope, you will enjoy this post.

CSS3 TEST
You know, you have to check the cross browsing for css template, specially CSS3. Because, CSS3 does not support for all browser till now. So, this site will help you to know about this-
http://css3test.com/

DABBLET.COM
This is the play ground of CSS. This is very very familiar website for css designer. More than 1000 css designer take help from this. You can try from this also-
http://dabblet.com/

ANIMATABLE
This is the very hot animation for CSS. You can get help from this site also. The address of this site is-
http://leaverou.github.com/animatable/

CSS3 PATTERN GALLERY
This is very very helpful site for pattern design for website. You can get easily help from this site. This pattern is used only css3, no image. The address of this site is-
http://lea.verou.me/css3patterns/

CSS3 GRADIENT GENERATE
In css3 you can generate gradient without any kind of image. This is very very cool opportunity for any web designer. In colorzilla, you will get this opportunity. This is very user friendly interface. The address of this site is-
http://www.colorzilla.com/gradient-editor/

This is enough for today. I believe that, if any designer follow these site for designing website, he / she will be blast within few months as a web expert.
Pry for me and keep in touch. I will post more important post very soon.

With Thanks-

MySql Data Manager with OO PHP

Hello All,

Today, we are going to learn how to manage your data from mysql by php with the Object Oriented System. You know, this is very simple process to learn about this. So, lets start our work.

First of all, I have to make a page entitled index.php. Beside this, I made a database named mydata. In this database, I created a table called test with two column. One is id (int 11 auto increment) another is name (varchar 30). Now start to write our code with php class.

<?php

class dataManager{

    private static function __dbConnnect(){

        mysql_connect(“localhost”,”root”,””);        

        mysql_select_db(“mydata”);

    }

    

    

    public static function getUploadCount(){

        self::__dbConnnect();

        list($count) =  @array_values(mysql_fetch_assoc(mysql_query(“SELECT COUNT(*) FROM test”)));    

        return $count;

    }

}

echo “Number of Uploded :”.dataManager::getUploadCount();

?>

Now, browse your file and you will get the the output of Number of Uploded :–

That’s enough for today. Thanks to read this tutorial.

Bye