+1
0
-1
0 view

answers

+1
2
-1
'Answer Accepted'

WP Mail SMTP is a WordPress plugin called, which can be used to send email through Google's SMTP servers. Install the plugin then use the following settings:

  • SMTP Host: smtp.gmail.com

  • SMTP Port: 465

  • Encryption: Use SSL encryption

  • Authentication: Yes

  • Username: Your full Gmail address or Google App email

  • Password: your account password

+1
2
-1
'Answer Accepted'

WordPress a PMS (post management system). It basically have one type of content, a post. Even a page in WordPress is really post. Over time WordPress has gotten really good at managing posts. It's now to the point where a post can be virtually indistinguishable as a post. So it appears to be a CMS. However the use of a post as the base level of content type leave big holes in the system. For example you can't like to another page within a post as piece of content. It's linked as a url and if the page moves the link is broken. Many such holes exist, but for most projects this is not a problem.

I've always considered WP to be a CMS, but switched to a wiki as my primary CMS primarily because I wanted a complete edit history. But one thing I like about the wiki is that links to other pieces of content are links to the content, as opposed to WP's fragile URL-of-the-moment. I never thought about that issue in the WP context before, but this is a spot-on critique.

OtherMichael
+1
2
-1
'Answer Accepted'
+1
2
-1
'Answer Accepted'

You can create a file called ‘install.php’ in the wp-content directory.
An article on WPSiteStack.com has more info.

+1
2
-1
'Answer Accepted'

I'm a fan of WordPress, but there are definitely issues that impede coders trying to work with it. As a small example, there's get_the_content() (returns) and the_content() (prints), but there's get_permalink() and the_permalink(). Then, there's just the_date(), because it accepts an argument indicating whether you want it to print or return. This kind of thing drives even an experienced WP person up the wall, because you've always got to be Googling the usage - and it speaks to a deeper lack of attention to detail in the code.

Another glaring issue is the lack of built-in caching. It even used to have it, but they ripped it out and never replaced it. You shouldn't need a third-party plugin to have basic caching in a system like WordPress, particularly with all the other bells and whistles it builds in.

To paraphrase (supposedly) Churchill, though, "WordPress is the worst blogging system... except for all the others".

+1
1
-1
'Answer Accepted'

You need to first call get_object_terms to get all the terms that exist already.

function addTerm($id, $tax, $term) {

$term_id = is_term($term);
$term_id = intval($term_id);
if (!$term_id) {
$term_id = wp_insert_term($term, $tax);
$term_id = $term_id['term_id'];
$term_id = intval($term_id);
}

// get the list of terms already on this object:
$terms = wp_get_object_terms($id, $tax)
$terms[] = $term_id;

$result = wp_set_object_terms($id, $terms, $tax, FALSE);

return $result;
}

Log in to Answer Question