Title: DrowSserp's Replies | WordPress.org

---

# DrowSserp

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Maximum number of pages supported without performance impact](https://wordpress.org/support/topic/maximum-number-of-pages-supported-without-performance-impact/)
 *  [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/maximum-number-of-pages-supported-without-performance-impact/#post-3645221)
 * Old post but in case this helps others..
 * The largest WordPress site I have on Hostgators shared hosting with their ‘Business
   Plan’ gets around 75,000 page views per day from around 7,000 visitors/day. So
   around 7,000 people viewing 10 pages each in around 5 minutes per visit. (aw-
   stats)
 * I am pretty much maxed at that. By maxed I mean if I get traffic spikes above
   that I run over the shared resource limits and they will occasionally shut me
   down if those spikes last too long. By shutting me down it means they disable
   the site until I assure them I’ve resolved the issues (optimize the site to be
   able to handle it by deleting plugins, rewriting the theme etc.)
 * I ‘might’ be able to get it up to 100,000 page views per day by rewriting the
   theme to eliminate the use of a few plugins that it still relies on but that 
   handful of plugins that are left have pretty minimal impact so it will remain
   to be seen.
 * I have another WordPress site on Hostgator that can handle around 30k visits 
   per day but pageviews are only about 40-45k. It uses just 1 plugin, Advanced 
   Custom Fields, and it seems to run as cool as a cucumber but we’ll have to see
   how well it does once it grows to match the 75k wall I’ve encountered.
 * **About the site**
    - It is image heavy
    - Has around 1500 posts
    - DB is around 40mb (occasionally optimized)
    - I use WP Super Cache with Hostgators recomended settings
    - I have the free account with Cloudflare (a semi-cdn, caches lots of site files
      like your css etc.)
    - Burns about 5gb bandwidth per day (much more if not using Cloudflare)
 * You can further optimize by using WP Super Caches static page options (which 
   i’ve yet to test out) but if it gets to that point it’s time to look into a dedicated
   and save yourself the headache of a website that could be temporarily suspended
   at any random time. I keep this one site on Hostgator as an experiment for a 
   project I’m working on and it’s been great learning as it forces me to optimize
   themes to run smoother with limited server resources.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Post Template] Full width post](https://wordpress.org/support/topic/full-width-post-2/)
 *  [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/full-width-post-2/#post-4153963)
 * Just browsing by, no time to answer at the moment but you can try this video 
   out, it may give you some clue.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Multiple Galleries] Not working with 3.5](https://wordpress.org/support/topic/not-working-with-35-38/)
 *  [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/not-working-with-35-38/#post-3298406)
 * Not good, I should have checked this post before I updated wordpress, my blog
   depends heavily on this great plugin 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Multiple Galleries] "Insert Gallery" button not responding when this plugin is active](https://wordpress.org/support/topic/insert-gallery-button-not-responding-when-this-plugin-is-active/)
 *  [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/insert-gallery-button-not-responding-when-this-plugin-is-active/#post-2218660)
 * The trick used to be that you could switch to visual editor then back to html
   editor then add the gallery and the button would work. Now I’m finding it does
   not and not having made an update to my site that requires a gallery recently
   I find I either can’t remember the trick exactly or it has changed since a past
   WP update.
 * I normally use Firefox, I’ve just tried chrome and the insert gallery button 
   work with chrome.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need Help Writing Correct PHP For the_category / get_category_link](https://wordpress.org/support/topic/need-help-writing-correct-php-for-the_category-get_category_link/)
 *  Thread Starter [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/need-help-writing-correct-php-for-the_category-get_category_link/#post-2570716)
 * Alright, so I got this figured out now to display multiple categories. It’s probably
   what I should have done in the first place. I post this follow up in case anybody
   googles upon this thread some time from now looking for solutions to this exact
   problem as I have so many times in the past only to find the questions asked 
   but never answered 😉
 * My wordpress theme is a child theme of twentyten, so this won’t work exactly 
   for every wordpress theme.
 * I went into functions.php and created a new function, an exact copy/paste of 
   _twentyten\_posted\_in_
 * I then renamed the new function and modified it a bit to suit my needs. Here 
   is the old and new code for comparisons sake to help you along..
 * tentyten_posted_in / original function
 *     ```
       if ( ! function_exists( 'twentyten_posted_in' ) ) :
       /**
        * Prints HTML with meta information for the current post (category, tags and permalink).
        *
        * @since Twenty Ten 1.0
        */
       function twentyten_posted_in() {
       	// Retrieves tag list of current post, separated by commas.
       	$tag_list = get_the_tag_list( '', ', ' );
       	if ( $tag_list ) {
       		$posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
       	} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
       		$posted_in = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
       	} else {
       		$posted_in = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyten' );
       	}
       	// Prints the string, replacing the placeholders.
       	printf(
       		$posted_in,
       		get_the_category_list( ', ' ),
       		$tag_list,
       		get_permalink(),
       		the_title_attribute( 'echo=0' )
       	);
       }
       endif;
       ```
   
 * my custom function – copied, pasted, renamed and slightly modified
 *     ```
       if ( ! function_exists( 'twentyten_posted_new' ) ) :
       /**
        * Prints HTML with meta information for the current post (category, tags and permalink).
        *
        * @since Twenty Ten 1.0
        */
       function twentyten_posted_new() {
       	// Retrieves tag list of current post, separated by commas.
       	$tag_list = get_the_tag_list( '', ', ' );
       	if ( $tag_list ) {
       		$posted_in = __( '<div class="divclass">View more from %1$s</div>', 'twentyten' );
       	} elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
       		$posted_in = __( '<div class="divclass">View more from %1$s</div>', 'twentyten' );
       	} else {
       		$posted_in = __( '<div class="divclass">View more from %1$s</div>', 'twentyten' );
       	}
       	// Prints the string, replacing the placeholders.
       	printf(
       		$posted_in,
       		get_the_category_list( ', ' ),
       		$tag_list,
       		get_permalink(),
       		the_title_attribute( 'echo=0' )
       	);
       }
       endif;
       ```
   
 * Note it had to be renamed in two spots, both replacing _twentyten\_posted\_in_
   with _twentyten\_posted\_new_
 * I left some stuff in there that isn’t necessary but have no need to figure out
   how to remove it at this time.
 * And then since I’m using post snippets I place the following php in the snippet
   box of the new snippet I create..
 *     ```
       twentyten_posted_new();
       ```
   
 * My final html output is this..
 *     ```
       <div class="divclass">
       View more from
       <a rel="category tag" title="TITLE1" href="http://fake.fake.fake/CATEGORY1/">CATEGORY1</a>
       ,
       <a rel="category tag" title="TITLE2" href="http://fake.fake.fake/CATEGORY2/">CATEGORY2</a>
       </div>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need Help Writing Correct PHP For the_category / get_category_link](https://wordpress.org/support/topic/need-help-writing-correct-php-for-the_category-get_category_link/)
 *  Thread Starter [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/need-help-writing-correct-php-for-the_category-get_category_link/#post-2570687)
 * A gentleman on another board helped me get this right, this is what I was looking
   for..
 *     ```
       foreach((get_the_category()) as $category) {
       $category_id = $category->cat_ID;
       echo '<div class="divclass"><a href="' . get_category_link( $category_id ) . '">' . $category->cat_name . '</a></div>';
       }
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need Help Writing Correct PHP For the_category / get_category_link](https://wordpress.org/support/topic/need-help-writing-correct-php-for-the_category-get_category_link/)
 *  Thread Starter [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/need-help-writing-correct-php-for-the_category-get_category_link/#post-2570500)
 * This is the best I can get it, the category name works but I can’t get the right
   stuff for the url to work..
 *     ```
       foreach((get_the_category()) as $category) {
           echo '<div class="divclass"><a href="' . $category->cat_ID . '">' . $category->cat_name . '</a></div>';
       }
       ```
   
 * I assume this is more what I need (the example from [get_category_link function reference](http://codex.wordpress.org/Function_Reference/get_category_link))
   but I can’t figure out how to get it to work..
 *     ```
       <?php
           // Get the ID of a given category
           $category_id = get_cat_ID( 'Category Name' );
   
           // Get the URL of this category
           $category_link = get_category_link( $category_id );
       ?>
   
       <!-- Print a link to this category -->
       <a href="<?php echo esc_url( $category_link ); ?>" title="Category Name">Category Name</a>
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Having Trouble With Customized Read More Link](https://wordpress.org/support/topic/having-trouble-with-customized-read-more-link/)
 *  Thread Starter [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/having-trouble-with-customized-read-more-link/#post-2566228)
 * I’m going to close this but leave some info on it before I do that.
 * 1. It was actually in the loop.php file that I needed to adjust things as the‘
   continue reading’ options in functions.php affected only the excerpts and I was
   looking at my index page posts. (I have excerpts currently displaying the same
   as index page posts in search results and dont rely on excerpts anywhere else
   on the site)
 * 2. I couldn’t figure out how to get a div to appear before the a href so what
   I did instead was get rid of the read more link by leaving the text area blank
   so instead of ‘read more..’ or in my case ‘View Full Post’ I lef tit as ”
 * 3. Rather than use the read more option to link to the post and as I need a button
   I added into the other posts of loop.php a link to the post page. The following
   is the code I have now..
 *     ```
       <div class="entry-content">
                                   <?php the_content(''); ?>
       <div class="read-more-class"><a href="<?php the_permalink(); ?>">View Full Post</a></div>
                               </div><!-- .entry-content -->
       ```
   
 * This way I get to style it as a div and play with it however I like rather than
   basic span and a link styling.
 * 4. I thought maybe that leaving the read more.. text area blank would leave me
   an anchorless tag in the html but it appears that doing this eliminates the read
   more link from showing up in the html.
 * Anyways, just thought I’d follow up on that a bit as this will one day become
   and old post and someone will find it on google and otherwise wish for more info,
   no matter how jumbled (I’m half asleep).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Search Box to search another blog/site..](https://wordpress.org/support/topic/search-box-to-search-another-blogsite/)
 *  [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/search-box-to-search-another-blogsite/#post-1865446)
 * Did you find a solution for this? I’m looking around for something similar myself.
   How To use a search box on Site B to search Site A. The Site B search can link
   surfer to Site A for search results, doesn’t have to display them on Site B.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to Stop Excerpt Link to Post Scrolling Down To More Tag Cutoff?](https://wordpress.org/support/topic/how-to-stop-excerpt-link-to-post-scrolling-down-to-more-tag-cutoff/)
 *  Thread Starter [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/how-to-stop-excerpt-link-to-post-scrolling-down-to-more-tag-cutoff/#post-1989511)
 * Beauty, thankyou!
 * keywords for others to find this..
    don’t want to jump to more, anchor more tag,
   no jump to more, scrolls to more, scrolls to cutoff, no jump to cutoff, stop 
   jumps down to cutoff, turn off scroll jump to more, prevent jump scroll to more
   tag cutoff excerpt main page link to post
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Code To Call? RSS Feed](https://wordpress.org/support/topic/code-to-call-rss-feed/)
 *  Thread Starter [DrowSserp](https://wordpress.org/support/users/drowsserp/)
 * (@drowsserp)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/code-to-call-rss-feed/#post-1987654)
 * I came across this [http://codex.wordpress.org/Customizing_Your_Sidebar#Buttons_and_Icons](http://codex.wordpress.org/Customizing_Your_Sidebar#Buttons_and_Icons)
 * and I’m thinking this must be what I’m looking for..
 * `feed:<?php bloginfo('rss2_url'); ?>`
 * If someone can confirm this is the right code to autodetect the rss feed location
   I can try to get it to work in my widgets html code in functions.php

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