Title: Dan Petty's Replies | WordPress.org

---

# Dan Petty

  [  ](https://wordpress.org/support/users/dpetty/)

 *   [Profile](https://wordpress.org/support/users/dpetty/)
 *   [Topics Started](https://wordpress.org/support/users/dpetty/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dpetty/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dpetty/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dpetty/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dpetty/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dpetty/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mandatory Field] Find the name:id for each field](https://wordpress.org/support/topic/find-the-nameid-for-each-field/)
 *  [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/find-the-nameid-for-each-field/#post-5576968)
 * [@ketanmujumdar](https://wordpress.org/support/users/ketanmujumdar/) — Thank 
   you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mandatory Field] Find the name:id for each field](https://wordpress.org/support/topic/find-the-nameid-for-each-field/)
 *  [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/find-the-nameid-for-each-field/#post-5576966)
 * I, too, am looking to figure out how to make tags a mandatory field. I found 
   this for the name and ID of the field itself:
 * newtag[post_tag]:new-tag-post_tag
 * But it doesn’t seem to work. Any ideas, Ketan?
 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Index.php pagination broken/disappeared on Multisite](https://wordpress.org/support/topic/indexphp-pagination-brokendisappeared-on-multisite/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/indexphp-pagination-brokendisappeared-on-multisite/#post-2228057)
 * Andrea — Thanks for the suggestion. It’s affecting multiple themes. The two sites
   I mentioned above — on different URLs (but the same server) — are on different
   themes and are seeing the same thing with its pagination.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Conditional tag question](https://wordpress.org/support/topic/conditional-tag-question/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/conditional-tag-question/#post-1017058)
 * Here’s the final solution, after some messing around with code. I’ve tested and
   it works. Thanks for the help, stvwlf.
 *     ```
       <?php
       $auth = get_the_author();
       if ($auth == 'admin') {
         echo c2c_get_custom('hpbyline');
       } else {
             if(function_exists('coauthors_posts_links')) {
                  coauthors_posts_links();
             } else {
                  the_author_posts_link();
            }
          }
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Conditional tag question](https://wordpress.org/support/topic/conditional-tag-question/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/conditional-tag-question/#post-1016967)
 * Can anyone build on stvwif’s response?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Conditional tag question](https://wordpress.org/support/topic/conditional-tag-question/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/conditional-tag-question/#post-1016864)
 * Thanks for the reply, stvwif, but it doesn’t seem to be working. Here’s what 
   it spits back.
 *     ```
       Parse error: syntax error, unexpected T_ENDWHILE in /home1/thecolm1/public_html/wp-content/themes/revolution_news-21/archive.php on line 44
       ```
   
 * I was also wondering whether it was possible to integrate the “Co-authors” plugin
   I have activated into your solution. Essentially, if the post author IS NOT “
   admin” go through these commands (below). There are a lot of if/else statements
   in this, and I don’t know how to properly code it.
 *     ```
       <?php if(function_exists('coauthors_posts_links'))
                                          coauthors_posts_links();
                                  else
                                     the_author_posts_link(); ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Display PDF as Image](https://wordpress.org/support/topic/display-pdf-as-image/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/display-pdf-as-image/#post-838498)
 * bump
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Conditional Tag “No Display”](https://wordpress.org/support/topic/conditional-tag-no-display/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/conditional-tag-no-display/#post-830626)
 * Thanks, Otto. It worked great! I’m going to complicate things a bit. I want that
   author displayed to be a link to the author’s posts. I’m also using the “Co-Authors”
   plugin that allows me to add multiple authors to a post.
 * To clarify: If the author is “admin” I want none of the information — displayed
   below — to appear on the page. Otherwise, it should appear.
 *     ```
       <div class="byline">
       By <?php if(function_exists('coauthors_posts_links'))
             coauthors_posts_links();
       else
             the_author_posts_link(); ?>
       </div>
       <div class="bytitle">
             <?php echo c2c_get_custom('Bytitle'); ?>
       </div>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Conditional: Display no byline if author is admin](https://wordpress.org/support/topic/conditional-display-no-byline-if-author-is-admin/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/conditional-display-no-byline-if-author-is-admin/#post-830100)
 * bump
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [NYTimes/Washington Post Media Slideshow](https://wordpress.org/support/topic/nytimeswashington-post-media-slideshow/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/nytimeswashington-post-media-slideshow/#post-821553)
 * Thanks for the reply, Mike. I actually already have the plugin, and I don’t think
   it’ll do quite what I want it to. Perhaps a Javascript slideshow is the answer?
   That’s what the NYT uses for “Inside NYTimes”. I’m using it at the end of my 
   posts to provide links to other stories. So, I want to be able to display like
   4 images (linking to posts) in a horizontal row, with “left” and “right” scroll
   buttons to see more images. Lots of the plugins out there are flash-based and
   really visually appealing, I’m looking for something a little more basic.
 * Can anyone else help?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Some PHP help for Co-Authors Plugin](https://wordpress.org/support/topic/some-php-help-for-co-authors-plugin/)
 *  Thread Starter [Dan Petty](https://wordpress.org/support/users/dpetty/)
 * (@dpetty)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/some-php-help-for-co-authors-plugin/#post-806717)
 * By the way, the code as written causes any author who has been part of a multiple
   author post to have the designation “Collegian Reporters,” even if it’s a single
   author. So, I’ve been a part of multiple author posts, but my title on other 
   stories just by me is now “Collegian Reporters.”
 * Just to clarify…

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