Jump to content

codexpower

Members
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

0 Neutral

About codexpower

  • Rank
    Member
  1. i am a beginner and learning wordpress. Codex is not for beginners the information there is in the form of notes, something that is very difficult to be grasped for any beginner. I have few question, This is from header.php - <!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo('charset'); ?>"> <meta name="viewport" content="width=device-width"> <title><?php bloginfo('name'); ?></title> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <div class="container"> <!-- site-header --> <header class="site-header"> <h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1> <h5><?php bloginfo('description'); ?></h5> </header><!-- /site-header --> Why is this part used twice - <?php bloginfo('name'); ?> First in head section - <title><?php bloginfo('name'); ?></title> then in Body - <h1><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h1>
  2. Can admin Please reply. I am afraid I may loose access some day. Thanks!
  3. While I try to login through this link - http://www.phpfreaks.com/user/login Login is 100% times not successful - It says user dioesnt exists. But when I use this URL - http://forums.phpfreaks.com/index.php? I suddenly gets logged in automatically. Please look into the matter. Thank You!
  4. I found a very beautiful tutorials on tuts - http://code.tutsplus.com/tutorials/creating-your-own-widgets-using-various-wordpress-apis-introduction--cms-22460 <?php class TutsPlusText_Widget extends WP_Widget { // widget constructor public function __construct(){ } public function widget( $args, $instance ) { // outputs the content of the widget } public function form( $instance ) { // creates the back-end form } // Updating widget replacing old instances with new public function update( $new_instance, $old_instance ) { // processes widget options on save } } But they have not clarified that where will this go. I mean in which file. I believe it should be themes functions.php. Can some one comment Please?
  5. What I remember from my college days is that isset check whether the variable has a value set or not and return true or false value. However I encountered a code in wordpress - // Set up the content width value based on the theme's design and stylesheet. if ( ! isset( $content_width ) ) $content_width = 625; Here why is this sign used ! This sign is actually not equal to, Right?
  6. @maxxd, Thanks Boss that was awesome and very helpful to me.
  7. I know some basic PHP from my college. I wanted to learn WordPress, but before jumping into wordpress I think I should expertise PHP functions and arrays because that what mostly used in WordPress. Can you recommend me some books/resources where advanced level PHP functions and arrays are discussed. Main Focus is PHP Functions, advanced level.
  8. I have learned some PHP in college. i think before jumping into wordpress I must master functions and array. I know basic, Can you recommend some books where functions and arrays are discussed in details at advanced level.
  9. Lets say this is a small function - <?php add_action( 'after_switch_theme', 'after_switch_theme_example' ); function after_switch_theme_example() { flush_rewrite_rules(); } ?> Please help me to under these functions more clearly. In think this is not a function - add_action( 'after_switch_theme', 'after_switch_theme_example' ); The two things in blue are some kind of parameters.
  10. @Sanjib Sinha I used some videos on you tube, but none are very informative. Can you give me few videos that has intensive focus on hooks in wordpress.
  11. I am new here I dont know if I am breaching any policy by posting questions. Are there any Tutorials that can give me input for wordpress basics such as listed here - http://codex.wordpress.org/Plugin_API http://codex.wordpress.org/Class_Reference I would be indebted if you can help me with that. Looking Forward. Cheers!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.