Forum Replies Created

Viewing 15 replies - 61 through 75 (of 269 total)
  • Forum: Fixing WordPress
    In reply to: add page
    luckdragon

    (@luckdragon)

    heh.. it happens, glad you got it figured out.. remember to set this topic as resolved 🙂

    luckdragon

    (@luckdragon)

    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)

    luckdragon

    (@luckdragon)

    shouldn’t this:

    array( 'post_type' => array('lettering', 'typography')&'post_status=publish')

    be this:

    array( 'post_type' => array('lettering', 'typography'),'post_status' => 'publish')

    luckdragon

    (@luckdragon)

    probably 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.

    luckdragon

    (@luckdragon)

    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…

    luckdragon

    (@luckdragon)

    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.

    luckdragon

    (@luckdragon)

    make sure that you have the host for the database set properly (i.e. to the correct database server (the mysql 5 one) )

    luckdragon

    (@luckdragon)

    same 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" />
    <? }}?>

    luckdragon

    (@luckdragon)

    also, 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.

    luckdragon

    (@luckdragon)

    also, 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)) {

    luckdragon

    (@luckdragon)

    you 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');
    
    }
    luckdragon

    (@luckdragon)

    define('FS_METHOD','direct');

    that is 2 parameters, try typing it rather than pasting it, sometimes characters don’t translate properly.

    luckdragon

    (@luckdragon)

    oops, forgot the echo, I’m used to using shorthand,
    <?=the_post_thumbnail()?>

    luckdragon

    (@luckdragon)

    if 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;
    }

    luckdragon

    (@luckdragon)

    first off, how do you determine which “magazine” they are going to?

Viewing 15 replies - 61 through 75 (of 269 total)