<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
    <title></title>
  </head>
  <body text="#000000" bgcolor="#ffffff">
    Mine just outputs "untitled" now.&nbsp; However, I've added a "no-title"
    CSS class where users can use display: none if they don't want that
    to appear.<br>
    <br>
    There are definitely several different approaches though.<br>
    <br>
    On 3/8/2011 3:32 PM, Emil Uzelac wrote:
    <blockquote
      cite="mid:AANLkTimD5sxTEZ67o+f4TKwXAU8APnMHgmDVPzrH7SQj@mail.gmail.com"
      type="cite"><font class="Apple-style-span" face="tahoma,
        sans-serif">I like the filter, good approach, also simple use
        for this would be:<br>
      </font>
      <div><span class="Apple-style-span" style="font-family:
          tahoma,sans-serif;"><br>
        </span></div>
      <div><span class="Apple-style-span" style="font-family:
          tahoma,sans-serif;">&lt;h1 class="entry-title"&gt;</span></div>
      <div><font size="2"><font face="tahoma,sans-serif">
            <div>&nbsp;&nbsp; &nbsp;&lt;?php</div>
            <div>&nbsp;&nbsp; &nbsp;if ( ! get_the_title() ) {</div>
            <div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;print '&lt;a href="' . esc_url( get_permalink()
              ) . '"&gt;Untitled&lt;/a&gt;';</div>
            <div>&nbsp;&nbsp; &nbsp;?&gt;</div>
            <div>&nbsp;&nbsp; &nbsp;&lt;a href="&lt;?php the_permalink(); ?&gt;"
              title="&lt;?php printf( esc_attr__( 'Permalink to %s',
              'fit' ), the_title_attribute( 'echo=0' ) ); ?&gt;"
              rel="bookmark"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;</div>
            <div>&lt;/h1&gt;</div>
            <div><br>
            </div>
            <div>Michael/Chip combination.</div>
            <div><br>
            </div>
            <div>If there is no title the Untitled will need to be in
              place where h1 should be instead of having h1 empty in
              source code and place a link on top somewhere. i.e. "Empty
              Text Node" is there but not visible to let's say Search
              Engines or any site that would crawl this.</div>
            <div><br>
            </div>
            <div>Emil</div>
            <div><br>
            </div>
          </font></font>
        <div><strong>Emil Uzelac</strong> | ThemeID | T: 224-444-0006 |
          Twitter: @EmilUzelac | E: <a moz-do-not-send="true"
            href="mailto:emil@themeid.com" target="_blank">emil@themeid.com</a>
          | <a moz-do-not-send="true" href="http://themeid.com/"
            target="_blank">http://themeid.com</a></div>
        <div><font color="#999999">Make everything as simple as
            possible, but not simpler. - Albert Einstein</font></div>
        <br>
        <br>
        <br>
        <div class="gmail_quote">On Tue, Mar 8, 2011 at 2:56 PM, Edward
          Caissie <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:edward.caissie@gmail.com">edward.caissie@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
            0.8ex; border-left: 1px solid rgb(204, 204, 204);
            padding-left: 1ex;">
            Perhaps I wasn't clear with my earlier reply ...<br>
            <br>
            I agree with Mike on the title should be empty if the author
            chooses not to write one; although I also would not
            recommend this particular item fall under the Theme Review
            guidelines. The end-users will make it clear if they think
            the Theme author's design concept fits their needs ... or
            not.<br>
            <br>
            I'm still not thrilled with the method I am using in my
            themes but this has given me a few more ideas to play with.
            <div>
              <div class="h5"><br>
                <br>
                <div class="gmail_quote">On Tue, Mar 8, 2011 at 3:45 PM,
                  Chip Bennett <span dir="ltr">&lt;<a
                      moz-do-not-send="true"
                      href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>&gt;</span>
                  wrote:<br>
                  <blockquote class="gmail_quote" style="margin: 0pt 0pt
                    0pt 0.8ex; border-left: 1px solid rgb(204, 204,
                    204); padding-left: 1ex;">I would use:
                    <div><br>
                    </div>
                    <blockquote style="margin: 0pt 0pt 0pt 40px; border:
                      medium none; padding: 0px;">
                      <div>if ( ! get_the_title() )</div>
                    </blockquote>
                    <div><br>
                    </div>
                    <div>Rather than:</div>
                    <div>
                      <div><br>
                      </div>
                      <blockquote style="margin: 0pt 0pt 0pt 40px;
                        border: medium none; padding: 0px;">
                        <div>$title = the_title( '', '', false );<br>
                          if ( empty( $title ) )</div>
                      </blockquote>
                      <div><br>
                      </div>
                    </div>
                    <div>But, that doesn't really address your
                      underlying point, which I believe is valid, but
                      outside the scope of the Theme Review guidelines.
                      I think we've got a good balance, by requiring a
                      permalink to the Single-Post view, but not
                      dictating *how* that permalink appears. Our
                      concern is the UX; the design consideration can
                      remain a matter between the developer and the end
                      users. I'd prefer we, as Theme reviewers, not get
                      in the middle of that.</div>
                    <div><br>
                    </div>
                    <div><font color="#888888">Chip</font>
                      <div>
                        <div><br>
                          <br>
                          <div class="gmail_quote">On Tue, Mar 8, 2011
                            at 2:39 PM, <span dir="ltr">&lt;<a
                                moz-do-not-send="true"
                                href="mailto:michael@mfields.org"
                                target="_blank">michael@mfields.org</a>&gt;</span>
                            wrote:<br>
                            <blockquote class="gmail_quote"
                              style="margin: 0pt 0pt 0pt 0.8ex;
                              border-left: 1px solid rgb(204, 204, 204);
                              padding-left: 1ex;">
                              Right on, I can totally see that need. The
                              main thing the erks me about<br>
                              solutions such as this is that they take
                              the authors intentions and throw<br>
                              them out the window. If I am writing a
                              post and I choose to leave the<br>
                              title blank, I would expect the title to
                              be blank. I do not want the title<br>
                              replaced with "no title". To me it has the
                              effect of a designer leaving in<br>
                              FPO images in a finished design ... IMO it
                              looks sloppy.<br>
                              <br>
                              If a permalink is needed, I would suggest
                              that it be added somewhere else<br>
                              in the template in a conditional check.
                              the_title can still be used for<br>
                              this:<br>
                              <br>
                              $title = the_title( '', '', false );<br>
                              if ( empty( $title ) ) {<br>
                              &nbsp; &nbsp;print '&lt;a href="' . esc_url(
                              get_permalink() ) .
                              '"&gt;Permalink&lt;/a&gt;';<br>
                              }<br>
                              <br>
                              -Mike<br>
                              <div>
                                <div><br>
                                  <br>
                                  &gt; The issue arises when Post Title
                                  is the only available permalink to the<br>
                                  &gt; Single-Post view. In this case,
                                  the developer may want to provide text<br>
                                  &gt; such<br>
                                  &gt; as "No Title", etc., so that the
                                  permalink still gets displayed.<br>
                                  &gt;<br>
                                  &gt; Chip<br>
                                  &gt;<br>
                                  &gt; On Tue, Mar 8, 2011 at 2:15 PM,
                                  &lt;<a moz-do-not-send="true"
                                    href="mailto:michael@mfields.org"
                                    target="_blank">michael@mfields.org</a>&gt;
                                  wrote:<br>
                                  &gt;<br>
                                  &gt;&gt; Is there a need for a
                                  conditional test?<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; I wrap all my code within the
                                  function and the conditional as pect
                                  is<br>
                                  &gt;&gt; handled for you:<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; the_title( '&lt;h2&gt;',
                                  '&lt;/h2&gt;' );<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; This way the tags will not be
                                  printed if the title is empty.<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; -Mike<br>
                                  &gt;&gt;<br>
                                  &gt;&gt; &gt; Ran across this
                                  suggestion on the WPORG support
                                  forums:<br>
                                  &gt;&gt; &gt;<br>
                                  &gt;&gt; &gt;<br>
                                  &gt;&gt; <a moz-do-not-send="true"
href="http://wordpress.org/support/topic/handling-display-of-title-when-none-exists?replies=1"
                                    target="_blank">http://wordpress.org/support/topic/handling-display-of-title-when-none-exists?replies=1</a><br>
                                  &gt;&gt; &gt;<br>
                                  &gt;&gt; &gt; I like this approach; it
                                  is cleaner than performing a
                                  conditional test<br>
                                  &gt;&gt; in<br>
                                  &gt;&gt; &gt; the template file.<br>
                                  &gt;&gt; &gt;<br>
                                  &gt;&gt; &gt; Just thought I'd pass it
                                  along...<br>
                                  &gt;&gt; &gt;<br>
                                  &gt;&gt; &gt; Chip<br>
                                  &gt;&gt; &gt;
                                  _______________________________________________<br>
                                  &gt;&gt; &gt; theme-reviewers mailing
                                  list<br>
                                  &gt;&gt; &gt; <a
                                    moz-do-not-send="true"
                                    href="mailto:theme-reviewers@lists.wordpress.org"
                                    target="_blank">theme-reviewers@lists.wordpress.org</a><br>
                                  &gt;&gt; &gt; <a
                                    moz-do-not-send="true"
                                    href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
                                    target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
                                  &gt;&gt; &gt;<br>
                                  &gt;&gt;<br>
                                  &gt;&gt;<br>
                                  &gt;&gt;
                                  _______________________________________________<br>
                                  &gt;&gt; theme-reviewers mailing list<br>
                                  &gt;&gt; <a moz-do-not-send="true"
                                    href="mailto:theme-reviewers@lists.wordpress.org"
                                    target="_blank">theme-reviewers@lists.wordpress.org</a><br>
                                  &gt;&gt; <a moz-do-not-send="true"
                                    href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
                                    target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
                                  &gt;&gt;<br>
                                  &gt;
                                  _______________________________________________<br>
                                  &gt; theme-reviewers mailing list<br>
                                  &gt; <a moz-do-not-send="true"
                                    href="mailto:theme-reviewers@lists.wordpress.org"
                                    target="_blank">theme-reviewers@lists.wordpress.org</a><br>
                                  &gt; <a moz-do-not-send="true"
                                    href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
                                    target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
                                  &gt;<br>
                                  <br>
                                  <br>
_______________________________________________<br>
                                  theme-reviewers mailing list<br>
                                  <a moz-do-not-send="true"
                                    href="mailto:theme-reviewers@lists.wordpress.org"
                                    target="_blank">theme-reviewers@lists.wordpress.org</a><br>
                                  <a moz-do-not-send="true"
                                    href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
                                    target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
                                </div>
                              </div>
                            </blockquote>
                          </div>
                          <br>
                        </div>
                      </div>
                    </div>
                    <br>
                    _______________________________________________<br>
                    theme-reviewers mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:theme-reviewers@lists.wordpress.org"
                      target="_blank">theme-reviewers@lists.wordpress.org</a><br>
                    <a moz-do-not-send="true"
                      href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
                      target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
                    <br>
                  </blockquote>
                </div>
                <br>
              </div>
            </div>
            <br>
            _______________________________________________<br>
            theme-reviewers mailing list<br>
            <a moz-do-not-send="true"
              href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
            <a moz-do-not-send="true"
              href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
              target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
theme-reviewers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
    </blockquote>
  </body>
</html>