How to create several Post pages

well, you must understand what “category” is and what a “post” is … you can imagine WP as a collection of posts . those “POSTS” are put inside “CATEGORIES” like books in a library .. The Categories are only for classification reasons. By themselves they are nothing. now , the “categories” page in wordpress, is … Read more

Linked pages from plugin on front can’t see $wpdb

I would do something like this: <a href=”https://wordpress.stackexchange.com/questions/42287/?xp=<?php echo $row->BrExpress; ?>”> <img src=”https://wordpress.stackexchange.com/questions/42287/images/full_menu_icon.gif” alt=”See this store menu” class=”menuimg” /></a> And then to load the page when the link is clicked: function load_the_menu_page() { if(isset($_GET[‘xp’])) { global $wpdb; // retrieve database info here return $info; } } add_action(‘init’, ‘load_the_menu_page’); Note, this is just a sample. If … Read more

anchor tag in header not working on other pages except the home page

The code you’re posting should work, as far as I can tell; however, you’re using some outdated template tags. Try replacing bloginfo( ‘url’ ) with echo home_url(), and bloginfo( ‘template_directory’ ) with echo get_template_directory_uri(), like so: <a href=”https://wordpress.stackexchange.com/questions/45310/<?php echo home_url(); ?>”> <img src=”<?php echo get_template_directory_uri(); ?>/images/logo.png” alt=”Good Morning Moon”/> </a> For more specific instruction, it … Read more

Link to full-size image for subscriber only

Sure it is… its a 3 step process.. Check if user is logged in return check and create an if condition return the BIG image link or not at all (right?) The code (not check for user level since subscriber is the lowest level) if ( is_user_logged_in() ) { echo ‘<a href=””><img src=”LINK TO BIG … Read more

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