Yes, it's THAT book!

Drop your email here to stay informed of the status of my "tell most" book about the National Security Agency:

--OR--

Read a little about the book here:

Employees are allies, not the adversary

--OR--

Check out the Kickstarter here (click)
How can I help you?
Contact Jeremy
Recommendations

Here's something that


I, Jeremy Duffy, actually recommend and think is worth checking out.
No web-bugs, no bs, just a legit recommmendation that I have personally evaluated before allowing it to be listed here:

Think something's here that shouldn't be? contact me!

Manually Insert Page/Post Into WordPress Via PHP

When I wrote a page to automatically process photos into individual posts using WordPress to make a gallery, I ran into the problem of manually creating a post and having it set the category. I solved the problem and at least one person has mentioned that they’d like to see how it’s done so here it is:

// for force creating posts
class poster {
     var $post_title;
     var $post_content;
     var $post_category;
     var $post_status;
     var $post_author;
     var $post_name;
}
$a_post = new poster();
$a_post->post_title = “Title of the post.”;
$a_post->post_content = “Here’s where your content goes”;
// An array of category ids. Note that this failed for me when the category wasn’t created ahead of time
$a_post->post_category = array(1,7);
// Or private or draft or whatever
$a_post->post_status = “publish”;
// I’m author 1. You probably are too, but set this to whatever you want.
$a_post->post_author = 1;
//This should probably be based on some variable or function, but I’ll hard-code it for this example
$a_post->post_name = “smithy”;
     
// feed object to wp_insert_post
$post_id = wp_insert_post($a_post);     


Share This

Have a Comment or Question?

Loading...

If you want to learn more about my professional background, click here to learn more.

Check out one of my guides/tutorials:

goodbye identity theft Tutorial
|INDEX|next: Credit Freeze

Too Late!

If you've already become a victim, here is a list of things you should do.

Solving ID Theft

Lock your credit reports with a Credit Freeze to prevent credit-based ID theft (90% of ID theft risk).
Learn to protect your information to prevent not only ID theft, but many other kinds of problems (the rest of ID theft risk).

Save Time and Money

cancel credit-monitoring services.
Cancel id-theft-insurance

Who is Responsible?

Sometimes you just have to wonder why it's so easy to steal identities in the first place.

... or check out any of my other guides and tutorials by clicking here!

The Identity Theft Victim's Mini-Guide to Recovery

If you've already experienced ID theft, here are some tips of what to do next.

[Click for full description]

Credit Freeze

Setting a credit report freeze is the fastest and most effective way to actually block and reduce your risk of ID Theft. And it's free.

[Click for full description]

Out and About Defense

The best defense against non-credit ID Theft and a variety of other risks is to adopt a mindset of protection: Data Defense. Learn how to protect your information with simple and sometimes free countermeasures all based on a simple philosophy that the less people who have your information, the safer you are.

[Click for full description]