luckdragon
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: add pageheh.. it happens, glad you got it figured out.. remember to set this topic as resolved 🙂
Forum: Themes and Templates
In reply to: Add "columbs" custom templates.in your footer, you can do something like:
<div id="widget-footer"> <div class="container_24 clearfix"> <? /* Begin Box Here */?> <div class="grid_6"> <?php if ( ! dynamic_sidebar( '1Footer' ) ) : ?> <!--Widgetized Footer--> <?php endif ?> </div> <? /* End Box Here */ ?> </div> </div>then, for each of the boxes you define, in your functions.php put:
register_sidebar(array( 'name' => '1Footer', 'id' => '1footer-sidebar', 'description' => __( 'Located at the bottom of pages.'), 'before_widget' => '<div id="%1$s" class="widget-footer">', 'after_widget' => '</div>', 'before_title' => '<h5>', 'after_title' => '</h5>', ) );that will add the locations and allow you to place “widgets” into them 🙂
just repeat the steps for the boxes (copy from begin box to end box to duplicate and change the name)
Forum: Fixing WordPress
In reply to: Permalink adding extra markupshouldn’t this:
array( 'post_type' => array('lettering', 'typography')&'post_status=publish')be this:
array( 'post_type' => array('lettering', 'typography'),'post_status' => 'publish')Forum: Fixing WordPress
In reply to: User default access and other accessprobably setting up some kind of user variable that is their “default location” so that when searches and stuff are done, it uses that variable. if that variable isn’t set, have it default somewhere, but also allow it to be overridden via urls or something similar.
Forum: Fixing WordPress
In reply to: Best way to organize very long list of links?well, you could always create multiple hardcoded pages,
have your links page just bring up a list of letters, then create the sub-pages like A, B, C, etc…Forum: Fixing WordPress
In reply to: Best way to organize very long list of links?is that a plugin? or a built in page? if it’s a plugin, you can modify it so you can pass a parameter to it, whether it be via ?letter=A or /yourpage/A
then you can modify the query to only show the links of the letter specified.
Forum: Fixing WordPress
In reply to: MySQL version won't updatemake sure that you have the host for the database set properly (i.e. to the correct database server (the mysql 5 one) )
Forum: Fixing WordPress
In reply to: Create On Site with Multiple Stylessame concept, only since there’s only 1 theme, you only need to put it in that theme’s functions.php file
add_action('wp_head','magazine_style'); function magazine_style() { global $post; get_the_category(); $magazineAcats = array("Magazine A","headlines A", "TOC"); $magazineBcats = array("Magazine B","headlines B", "Sporting Events"); if (in_category($magazineAcats)) { ?> <link rel="stylesheet" href="<?php bloginfo('template_url')?>/magazineA.css" type="text/css" /> <? } else if (in_category($magazineBcats)) { ?> <link rel="stylesheet" href="<?php bloginfo('template_url')?>/MagazineB.css" type="text/css" /> <? } else { ?> <link rel="stylesheet" href="<?php bloginfo('template_url')?>/style.css" type="text/css" /> <? }}?>Forum: Fixing WordPress
In reply to: Create On Site with Multiple Stylesalso, if they all use the same theme, and you are just changing the .css file, there’s another albiet similar way to do it. let me know if that’s the direction you need.
Forum: Fixing WordPress
In reply to: Create On Site with Multiple Stylesalso, you might have to list each category individually (like sub-categories)
$magazineAcats = array("Magazine A","headlines A", "TOC"); $magazineBcats = array("Magazine B","headlines B", "Sporting Events"); if (in_category($magazineAcats)) {Forum: Fixing WordPress
In reply to: Create On Site with Multiple Stylesyou would have to put it in the functions.php file (you might have to put it in the functions.php file for EACH theme, in which case, you might have to check if it’s defined)
if (!function_exists("magazine_style")) { function magazine_style($theme) { get_the_category(); if ( in_category('Magazine A') ) { $theme="MagazineA"; } elseif ( in_category ('Magazine B') ) { $theme="MagazineB"; } elseif ( in_category ('Magazine C') ) { $theme="MagazineC"; } else { } return $theme; } add_filter('template', 'magazine_style'); add_filter('option_template', 'magazine_style'); add_filter('option_stylesheet', 'magazine_style'); }Forum: Fixing WordPress
In reply to: Plugin install or upgrade failuredefine('FS_METHOD','direct');that is 2 parameters, try typing it rather than pasting it, sometimes characters don’t translate properly.
Forum: Fixing WordPress
In reply to: Display ALL Thumbnails from Custom Post Types to Page templateoops, forgot the echo, I’m used to using shorthand,
<?=the_post_thumbnail()?>Forum: Fixing WordPress
In reply to: Create On Site with Multiple Stylesif you are differentiating them by category, it would be something similar to this:
add_filter('template', 'magazine_style'); add_filter('option_template', 'magazine_style'); add_filter('option_stylesheet', 'magazine_style'); function magazine_style($theme) { get_the_category(); if ( in_category('Magazine A') ) { $theme="MagazineA"; } elseif ( in_category ('Magazine B') ) { $theme="MagazineB"; } elseif ( in_category ('Magazine C') ) { $theme="MagazineC"; } else { } return $theme; }Forum: Fixing WordPress
In reply to: Create On Site with Multiple Stylesfirst off, how do you determine which “magazine” they are going to?