Link to Authors blog posts

the_author_ID() says in Codex: It displays the unique numeric user ID for the author of a post; the ID is assigned by WordPress when a user account is created. This tag must be used within The Loop. So, it won’t work. Try using the following code* within a loop: <li class=”author vcard”> <a class=”url fn … Read more

Sidebar does not display on blog page, but fine with static pages

<!– Obsolete You have to create the file named single.php for your single post template. If you use custom post types, name the file like single-my_custom_post_type.php, where my_custom_post_type part is your registered custom post type. Otherwise index.php is used by default. –> Edited: You have to change the file name from page_blog.php to page-blog.php. Notice … Read more

Inserting A Feed and Sidebar into an HTML Page

The typical definition of static page is plain text file, typed by hand or generated by software either. By definition static pages cannot have back-end powered dynamic functionality. There are quite a few approaches to integrating WP (or anything really) with static page, typical being: convert static page to dynamic completely – turn it into … Read more

Page updates appear in Preview but not live version?

If I understand you well, button ‘Preview Changes’ displays changes made on post/page while you ‘Update’ page/post (save changes). But, ‘View Page’ displays page as is with latest ‘Update’ version. So, if you did not updated page, then you’ll not see what you get when you go to ‘Preview Changes’.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)