Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Figured it out!

    <?php global $post; //not neccessary if used in the loop
    $parent = $post->post_parent;
    if( $parent ) :
    $siblings = get_pages( ‘child_of=’ . $parent . ‘&parent=’ . $parent . ‘&exclude=’ . $post->ID);
    if( $siblings ) foreach( $siblings as $sibling ) :
    //start of whatever you need to output//
    $mypermalink = get_permalink($sibling->ID);
    $mysibling = $sibling->post_title;
    echo get_the_post_thumbnail($sibling->ID,’medium’);
    echo “$mysibling” ;
    //end of whatever you need to output//
    endforeach;
    endif; //ends if( $parent ) //
    ?>

    Thread Starter abesanchez

    (@abesanchez)

    I responded to you via email. Those are just a few dealer sites mentioned, there are 20 now and more to come. If i use WordPress Multisite Tags, should that take care of the blog situation?

    Thread Starter abesanchez

    (@abesanchez)

    As for duplicate content, this is a question that we have around the office and I would love some expert WP advice on this. If it is a home improvement company, they have multiple products with dealer sites that use MU. If the content is the same, from the same company, about the same product… is it considered duplicate content? If so, MU site wide tags should be the way to go and not active it on the sites where dealers manage the blog themselves.

    Many thanks in advance, you’re always so helpful Ipstenu ??

    Thread Starter abesanchez

    (@abesanchez)

    A slideshow plugin on the home page. So to replace them I would have to go into the library and add each one and add back their titles and alts, for 14 sites So drag and drop sounded easier to me. Don’t you think?

    Thread Starter abesanchez

    (@abesanchez)

    Well we’re doing a pretty big overhaul and first off we have to change the photos for all of the sites to the same images, then each “dealer” for each site will have control to change it through the media uploader if they want to, I just don’t to upload the same files 14+ times.

    As long as the images have the same filenames I should be good right?

    Thread Starter abesanchez

    (@abesanchez)

    That seems to just break the site. However, this seems to work so far! Is there any thing not kosher about this?

    # Forcing www. infront of domain
    RewriteEngine On
    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} ^(bathplanet\.com)$ [NC]
    RewriteRule ^(.*)$ https://www.%1/$1 [R=301,L]
    Thread Starter abesanchez

    (@abesanchez)

    No bathplanet.com was not multisite before. My WHM lists it’s primary domain as bathplanet.com.

    define('WP_DEBUG', false);
    define('WP_ALLOW_MULTISITE', true);
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'www.bathplanet.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    abesanchez

    (@abesanchez)

    This is what I have, what WP told me to place in the htaccess, the one from Network Admin–>Settings–>Network Setup. I just noticed also that this happens when trying for wp-amin, basically anything on the first attempt.

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress
    abesanchez

    (@abesanchez)

    I am having the same problem, when I put in bathplanet.com/reno it redirects me to bathplanet.com. I can go to bathplanet.com/reno after the main site loads, but it always redirects on the first attempt. Sucks if they are running an ad or something for that URL. I’ve looked and haven’t found anything yet. ??

Viewing 9 replies - 1 through 9 (of 9 total)