eCarbonated
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: How do I make a single-page-layout in WP?This will work for what you need. It’s a few snippets I found here and there but it will get the job done.
<?php get_header(); // define how pages will display $args = array( 'sort_order' => 'ASC', 'sort_column' => 'menu_order', //post_title 'hierarchical' => 1, 'exclude' => '', 'child_of' => 0, 'parent' => -1, 'exclude_tree' => '', 'number' => '', 'offset' => 0, 'post_type' => 'page', 'post_status' => 'publish' ); $pages = get_pages($args); //start loop foreach ($pages as $page_data) { $content = apply_filters('the_content', $page_data->post_content); $title = $page_data->post_title; $slug = $page_data->post_name; ?> <div class='<?php echo "$slug" ?>'> <h2><?php echo "$title" ?></h2> <?php echo "$content" ?> </div> <?php } get_footer(); ?>Forum: Plugins
In reply to: [oik-nivo-slider] [Plugin: oik-nivo-slider] long codeI used this…. nevermind. still learning…
<?php echo do_shortcode(‘[shortcode option1=”value1″ option2=”value2″]’); ?>
@kerfred… please explain how several times will work. I did and it didn’t.
I got:
Erreur !: SQLSTATE[HY000] [2013] Lost connection to MySQL server at ‘reading initial communication packet’, system error: 110
I read this article: http://www.magentocommerce.com/boards/viewthread/7901/
which said to include the mysql server IP.Dodaddy will not give out that information if you are on a shared server.
Viewing 3 replies - 1 through 3 (of 3 total)