I have a WordPress site and for a very complicated reason I have to set some post type's template to empty file. Nothing.  Which means I have a URL on my site (let's say: example.com/postype/the-best-post/) which displays nothing (it doesn't only display nothing it's also really empty, like if you view the source, no code at all).  So is it bad for my site?  And if it is do i have another alternative that would make it alright (some way to say to Google robots.  I'm letting you know that this is a empty page and you have no reason to index it so don't punish me please?!)  Note: This is isn't a duplicate of webmasters.stackexchange.com/questions/106931/… because it's about pages with html, just with no content and this is about pages with no html at all.
123915
How do search engines see empty pages?   Is it a good thing or a bad thing for a website to have pages with no content?
90353
I have a Wordpress site that I have set up with Google Fetch and I have been getting a bunch of crawl errors and it has started significantly hurting my Google ranking and site traffic even though it clearly says it shouldn't. The thing that doesn't make sense to me is that the 404 pages are not actually pages that exist. They are Tags and categories on my blog mixed with a site address from one of my other websites that is not actually associated with this blog at all. They are different domains/databases and everything so they shouldn't be connected.   The site was actually giving me the same problem a few weeks ago and I actually switched to a new theme because I noticed the one I had was out of date and thought maybe it was throwing a random error. But now, I have no idea why this would even happen or where Google would come up with this URL.   Here are a few examples:   www.whenlovegrows.com/tag/lactose-free-food/www.deannemroz.com www.whenlovegrows.com/tag/crescent-dogs/www.deannemroz.com www.whenlovegrows.com/tag/turkey-dogs/www.deannemroz.com   Basically any time I add a new tag it seems that Google is crawling it and then adding my other site's web address to the end and claiming it is a 404 page. Has anyone ever experienced anything like this? Is there some way I can help it?  Any insight would be much appreciated. I am at a loss as to how to fix this and it is becoming extremely frustrating since it is affecting my ranking.
107747
Please bear with me because I am new to utilizing Wordpress PHP this way. I have the following script:  &lt;div id="content"&gt; &lt;?php     // check if the repeater field has rows of data     if( have_rows('repeat_field') ):         $i = 0;          // loop through the rows of data         while ( have_rows('repeat_field') ) : the_row();             $i++;              // display a sub field value             if (!empty(get_sub_field('feature_image_post'))) {                  echo '&lt;a href="';                 the_sub_field('restaurant_article_link');                  echo '"&gt;';             }              if( $i &gt;= 78 ) {                 break;             }                     endwhile;     else :         // no rows found     endif;     ?&gt;     &lt;/div&gt;     &lt;div id="loading-image" style="display: none;"&gt;&lt;/div&gt;     &lt;div id="part2"&gt;&lt;/div&gt;     &lt;script&gt;          var w = $(window);         window.onscroll = function(ev) {             if ($(document).height() - w.height() == w.scrollTop()) {                  $('#loading-image').show();                 $.ajax({                     url: "&lt;?php echo get_stylesheet_directory_uri();?&gt;/post-2.php",                     cache: false,                     success: function(result){                       $("#part2").html(result);                     },                     complete: function(){                       $('#loading-image').hide();                     }                 });             }         };     &lt;/script&gt;   The the Php page that I am trying to load pretty much contains the same code . It just stops after loading 200 fields.   &lt;?php     // check if the repeater field has rows of data     if( have_rows('repeat_field') ):         $i = 0;         // loop through the rows of data         while ( have_rows('repeat_field') ) : the_row();             $i++;             // display a sub field value             if (!empty(get_sub_field('feature_image_post'))) {                 echo '&lt;a href="';                 the_sub_field('restaurant_article_link');                  echo '"&gt;';             }              if( $i &gt;= 200 ){               break;             }                      endwhile;     else :         // no rows found     endif; ?&gt;   I don't know why the php page (post-2.php) is not loading. The strange thing is that when I replace &lt;?php echo get_stylesheet_directory_uri();?&gt;/post-2.php with a test html page &lt;?php echo get_stylesheet_directory_uri();?&gt;/test.html The test page (test.html) loads.  I have to say that I looked on in my console using the console tab of my browser added console.log(); to view any errors and I'm not getting any errors. I also looked in my networked tag to ensure that post-2.php loaded properly and I'm not getting errors. My goal is to find out why my PHP page isn't loading  ***** Update ***** I'm being told to use $post_id but I've never used it. Does anyone have a working example of this? Would it be similar to if( have_rows('repeat_field', $post_id) ): or if( have_rows('repeat_field', 55612) ): ?
55957
I want to extend my website in a way that is parallel to the wordpress theme.  Example:  My website with wordpress is at: www.mywebsite.com By ftp I added a directory named test, in which there is a php file test.php  The problem is that if I write in the url: www.mywebsite.com/test/test.php it redirects me to the "page not found" of my theme.  How can I deactivate this behavior?   Posting .htaccess:  # BEGIN WordPress &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] &lt;/IfModule&gt;  # END WordPress  # # av:php5-engine AddHandler av-php5 .php  # # av:Toolbar SetEnv AV_TOOLBAR 1
95219
I am displaying post tags like this:  &lt;div class="tags"&gt;&lt;?php the_tags('&lt;span&gt;Tags&lt;/span&gt;' , ' '); ?&gt; &lt;/div&gt;   It works fine, but if the post does not have any tag, then it adds empty div  &lt;div class="tags"&gt;&lt;/div&gt;   So, how can I use the condition to check if post has any tag, then display above.
30679
I am trying to make the inserted images from a post (single.php) to point to (single-attachement.php) an attachment page. So far I checked a post here on stackexchange and added this code on the top, before the header of single.php, just that it's showing me a link to the last image on the page, instead of modifying the structure of the image link.  if ( $attachments = get_children( array( 'post_type' =&gt; 'attachment', 'post_mime_type'=&gt;'image', 'numberposts' =&gt; 1, 'post_status' =&gt; null, 'post_parent' =&gt; $post-&gt;ID ))); foreach ($attachments as $attachment) { echo wp_get_attachment_link( $attachment-&gt;ID, '' , true, false, 'Link to image attachment' ); }
45023
My site is: . It's build using Wordpress.  My lastest Post is: , after making this post for the last 5 days I'm getting The site ahead contains harmful programs problem.  Because of this I'm getting low traffic.  How do I resolve this issue?  But main site working fine.
48617
I have noticed after deleting an original page in WordPress with lets say a permalink of your_domain.com/contact/ and then trying to recreate the same page with the same name/slug, my WP is generating a "-2" at the end of the link, like: your_domain.com/contact-2/.  I don't understand why, since the original page was deleted. Why is WordPress treating new pages as if the original still exists? How to I clean WP caches, if such a thing even exists?Thank you ahead of time for clearing this up for me.
19499
I have a WordPress installation that is not redirecting URLs not starting with www.  Example: http://example.com/dir/ doesn't send to http://www.example.com/dir/ instead goes to http://example.com/.  How do I change the .htaccess below to always redirect to the page either using www or not?  # 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).*) $2 [L] RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]  # END WordPress
25980
suggested to have templates for tags. Their example was with the  tag on Stack Overflow.  I'm suggesting a more general approach:  Templates, Mark II  I suggest that each site will have a template. That template will prefill the  textbox when a new question is asked. However, it will be completely optional.  Something like (for Stack Overflow):  ## The Problem ## { Please tell us what the problem is with as many details as possible.   Include language, operating system, and any other relevant information.   Remember to add the relevant tags below, too. } ## Attempted Solutions ## { Please tell us what you've tried so far. Have you tried searching Google?    What queries? } ## Existing Code ## { Do you have any existing code to show? Please keep it short and simple.    We should be able to detect the problem right away. }   Why am I suggesting this?  Well, it seems as though most users will stick with the default. They don't bother to read, and so prefilling the question form for them with information that we know might be relevant, will forceWe'll get to that in a second them to actually stop and read.  Scenarios:   Best case: User arrives to ask a question, actually reads the template, fills the correct information in the placeholders. (Yeah, because that'll happen a lot) Neutral: User simply removes all of the template text and rewrites their own question. Result is exact same as we have currently. Worst case: User will ignore or misunderstand the template, will use it wrong or not at all and we'll get something like  &lt;template text here, still unfilled&gt; &lt;(crappy) question&gt;   This can be solved in a couple different ways. We could detect the template tags (i.e. { }, subject to discussion), and throw an error when a user attempts to post with them still available. We could also act more autonomously and remove placeholders which still exist.    Some more points:   Templates should be per-site, not per-tag. Sure, there are differences between the tags, but all questions are expected to have the same general information, and this isn't meant to be a rule, but a guideline to help write better questions. Site templates should be editable by that site's mods, like close reasons. We could autofocus on the first placeholder, and perhaps implement TAB to jump from one placeholder to the other, similar to mixins in IDEs. This doesn't have to be implemented everywhere. This suggestion makes sense to Stack Overflow or Superuser, but not to Anime &amp; Manga or Gaming All of the details are subject to discussion, and all discussion is welcomed.
23914
For as long as I can remember, every time I install Ubuntu there is a folder in the home directory called "Templates." I've always just deleted it, but I'm curious: what's it supposed to be used for, and why is it in the default install?
12254
All browsers I tested support about:blank as a URL for an empty page. I understand the blank, but where comes the about from?
28660
Is there a decent way with static HTML/XHTML to create common header/footer files to be displayed on each page of a site? I know you can obviously do this with PHP or server side directives, but is there any way of doing this with absolutely no dependencies on the server stitching everything together for you?  Edit: All very good answers and was what I expected.  HTML is static, period.  No real way to change that without something running server side or client side.  I've found that Server Side Includes seem to be my best option as they are very simple and don't require scripting.
66861
I want to replace all my website files for new ones on the server and to test if they work alright but I don't want to be crawled while this is happening or if I am,  I don't want the crawler to be able to see what's in the new page.  I just want to change it for like 15min but i tested other stuff once for 5min and google for webmasters told me they had a lot of 404's during that period and I don't want that to happen again.   Besides that I don't want to have to write my whole .htaccess file. I considered redirecting all the urls to my main page and apply the changes but I think this isn't probably a good practice, any good ideas?
114624
I noticed that the  is apparently abandoned and the  is back to WordPress.  I'd be interested to know what were the decisions that led to switching back. Was the content creation process hindered by Markdown + git? Were there growing pains that couldn't be solved?
121447
I'm using a little plugin that allows me to add source link to every article. I found the code in this thread:   It's almost perfect, but I need to make 2 little modifications:   When there's no source link, the word "Source:" is still showing up (here's how it looks like: ), but I need to get rid of it if no source link is added. Does anyone have any idea how to do it? Source link shows on every page of a post. I have some posts splitted into multiple pages, but the link still shows on each one of them. I need to change this - the link has to show up only on the last page of a splitted post. Any ideas how to achieve that?   Here's the code I'm using (pasted in functions.php):  - the first one  And here's what I have in my single.php (single post):   &lt;div class="source-link"&gt;Source: &lt;?php echo esc_url( get_post_meta( $post-&gt;ID, '_source_link', true ) ); ?&gt;&lt;/div&gt;   Thanks in advance. Im desperate for help.  Kacper
41229
In the WordPress SEO plugin by Yoast, there is an option that could noindex the subpages of archives. From example, it would noindex the following:  http://example.com/page/2/ http://example.com/page/3/ http://example.com/page/4/   … and so on. Is there a good and legitimate reason to do this, in terms of SEO? Would it benefit me in any way?