Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter benjoschen

    (@benjoschen)

    Also, this is the message that appears in the sidebar of the post drafting page:
    “If you can see this, then there is some form of problem showing you the Facebook publishing buttons. This may be caused by a plugin conflict or some form of bad javascript on this page. Try reloading or disabling other plugins to find the source of the problem.”

    Thanks for your help.

    Forum: Fixing WordPress
    In reply to: tag = pagename
    Thread Starter benjoschen

    (@benjoschen)

    Below is the final markup, if you or anyone else is curious. Seems to work perfectly:

    <?php
    $args=array(
    'category_name'=>'news',
    'tag'=>$pagename,
    'showposts'=>3,
    'caller_get_posts'=>1
    );
    
    $my_query = new WP_Query($args);
    if( $my_query->have_posts() )
    {
    while ($my_query->have_posts()) : $my_query->the_post();
    ?>
    
    <li><a>"><?php the_title(); ?></a>
    <p><?php the_excerpt($length, $more); ?></p>
    </li>
    <?php
    endwhile;
    }
    //if ($my_query)
    wp_reset_query();  // Restore global post data stomped by the_post().
    ?>

    Forum: Fixing WordPress
    In reply to: tag = pagename
    Thread Starter benjoschen

    (@benjoschen)

    I just had a breakthrough.
    if ($tag-slug == $pagename) {do some stuff;} works. Now I am just working through displaying the posts with $args=array() and WP_Query.
    Almost there!

    Thanks for taking the time to try to help me. I really appreciate it.

    Forum: Fixing WordPress
    In reply to: tag = pagename
    Thread Starter benjoschen

    (@benjoschen)

    Thanks. I’m not sure I understand what you are proposing.
    I have created a page template for employee profiles called profile.php. Each employee will have a profile page utilizing the profile.php template.
    I would like to display on each employee’s profile all news posts that are tagged with their name. The tag slugs/id and the pagenames are identical. For example, the tag slug for John Smith is john-smith. The pagename for John Smith is also john-smith. Presumably, I could create an if statement that is something like: if (tag == pagename){display the news;}. I know how to make the news display, I just don’t know how to express tag == pagename in my if statement.

    Should I be changing the permalinks for each employee’s profile to /employees/tag-firstname-lastname?

    I was warned not use Go Daddy several years ago. I heeded the warning, but recently took on a client who already set up their hosting with them. Now I understand why I was warned. Most days, the blog takes too long to load. Other days it doesn’t load at all. I have been using Dreamhost for years and never had any problem. They can be a little expensive, but they make up for it in a reliable product and excellent support.

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