Andi Saleh
Forum Replies Created
-
Forum: Installing WordPress
In reply to: New to thisIt’s most likely a DNS propagation delay. Most of the time they’re instantaneous but some times they could take a while. If there are several nameservers set for the domain, try swapping them around. You can also check if it loads with the
wwwprefix.Forum: Localhost Installs
In reply to: Migrating a multi-site from localhost to live?1. If by migrate you mean uploading just all your files to the live server then yes, the settings (and posts/pages) will be lost. Most Plugins/Themes settings (and the site’s content of course) are stored in the database so you’ll want to copy your database(s), too.
2. Documenting is always good, but if you could manage to copy your database then you won’t need to recreate most of them.
Forum: Installing WordPress
In reply to: have more than one wp site in one database?Yes, you only need to define different table prefixes for each installation, the default being
wp_.It’s generally safe but I think it will have some performance issues once the database gets bigger. A rare possibility where things can get messy is when you use some advanced but poorly written Themes or Plugins where the developers just assume everyone will be using
wp_. Most of the times, you’re good to go.Forum: Installing WordPress
In reply to: New to thisIt’s accessible from here.
Photo Website
Forum: Fixing WordPress
In reply to: Search Results Page JumbledNot really. Search results are displayed using the search.php file (the codes you have above). If you look into the file you’ll find the line:
get_template_part('content', $format);Each post that is found by your search query will go through this code. What it does is it tells WordPress to fetch yet another template file based on the format of the post. For example, if it’s a standard post it will fetch “content-standard.php”. If you saved the post in a quote post format it will fetch “content-quote.php”. Hope that makes sense.
So what you need to do is modify the codes in these template files. You can start with “content-standard.php” since I assume most of your posts will be in this format. There is a catch, though. Since this template file is also used throughout the site, you can’t just switch “the_content()” with “the_excerpt()” because it will affect all pages/views that calls this template.
The solution is to add a conditional script telling WordPress to only display excerpts on search results. Locate where the_content(); is then replace it with this snippet:
is_search() ? the_excerpt() : the_content();That should do it.
Thanks for visiting my site although I know there’s nothing much to see there right now. Of course I’ll be happy to help you with your projects. 🙂
Forum: Fixing WordPress
In reply to: Clickable Phone Number for Mobile DevicesJust the numbers because this is what the visitors will click.
Forum: Hacks
In reply to: Store raw post HTML in WordPress databaseIt will be easier if you can modify how ASP.NET renders the output, i.e. detect and render HTML from the string. Take a closer look into literal control or use
Response.Write(htmlString);Forum: Fixing WordPress
In reply to: Clickable Phone Number for Mobile DevicesYes, they work like regular links but uses
tel:instead ofhref:. If you want a link to trigger an email app, usemailto:your@email.com.Forum: Fixing WordPress
In reply to: Make hover effect#secondary-nav > .menu-item a:hover { background-color: rgba(255,255,255,.7); }Forum: Fixing WordPress
In reply to: Make hover effectAdd this to your CSS (at the bottom so it doesn’t interfere with other rules):
#secondary-nav > .menu-item a:hover { border-bottom: 2px solid #000000; }Forum: Fixing WordPress
In reply to: Clickable Phone Number for Mobile DevicesYou will most likely find the line in the filed named
header.phpbut it really does depend on how your developer built it.Search for the line:
<img src="http://www.rjspest.com/wp-content/themes/petsmanagement/images/callnumber-new.png">then wrap it like the snippet above. The end result would be something like
<a href="tel:+12128961299"><img src="http://www.rjspest.com/wp-content/themes/petsmanagement/images/callnumber-new.png"></a>Hope that helped. 🙂
Forum: Fixing WordPress
In reply to: Search Results Page JumbledThat’s okay, I’ll continue it here. 🙂
Past this into your functions.php file. This should reset the search results to only display posts.
// Custom search filter function SearchFilter($query) { if ($query->is_search) { $query->set('post_type', array( 'post' )); } return $query; } add_filter('pre_get_posts','SearchFilter');Hope that helped! 🙂
Forum: Hacks
In reply to: Get query post form tag id in post// WP_Query arguments $args = array ( 'tag_id' => '1,2,3' ); // The Query $query = new WP_Query( $args );OR
// WP_Query arguments $args = array ( 'tag_name' => 'blogging, wordpress, slug'); // The Query $query = new WP_Query( $args );Forum: Fixing WordPress
In reply to: Updating my siteI’m sorry, I’m not familiar with that plugin so I can’t assist on how to use it. I believe you will find documentation on the plugin’s admin pages or on its official site.
If you have access to your MySQL database, you can backup WordPress by exporting your tables.
Forum: Fixing WordPress
In reply to: Search Results Page JumbledAbout the results displaying snippets, you should swap
the_content()withthe_excerpt()on the template page.