I am trying to get content from a wordpress installation on a subdomain of my server. I tried that with file_get_content and also with Zend_Http_Client.
$client = new Zend_Http_Client(Zend_Registry::get('CONFIG')->static->$name->$lang);
$content = $client->request()->getBody();
As long as I run in on my localhost, it works fine. As so...
Hi,
I am trying to use WordPress API via XMLRPC to submit new posts. But i can't set the post tags (nor the categories).
echo "Adding $term to blog via XMLRPC ...";
$client = new IXR_Client("http://$blog.wordpress.com/xmlrpc.php");
$content = array('title'=>$term,
'description'=>"All abou...
We have the default TinyMCE installation where clicking on the button to bring up the HTML editor makes it come up in a popup window. With something like Wordpress, the HTML editor is just another tab inside the TinyMCE box, which is a nicer alternative.
Is it possible to setup TinyMCE so the HTML editor just comes up in another tab of ...
Hi, in Wordpress on a post how can I get the name of the category it belongs to (each post will only have one category on my website).
...
I really like how Lifehacker.com (and Gawker.com) implements their comment system.
I believe, but am not certain, they use Movable Type as the platform for their blog.
What I like about their comment system is that it's a simple open text field and once you click "Share" it then asks you to register.
Question: Anyone know how to accom...
Hi,
I would like to get some ideas what's the best way to implement/integrate a Email Subscription Form for a wordpress theme i'm building. The form I'm referring is similar to this (www.babyyu.com) and (smashingmagazine.com).
Thanks!
...
Is there a way for me to get a pseudo-ID of a post from the category it belongs to? Let's say I have these posts
post_id | post_title | post_cat
--------+------------+---------
0 | a post | cat1
1 | a post1 | cat2
2 | a post2 | cat1
3 | a post3 | cat2
...
57 | a post57 | cat2
I want the pos...
Hi,
I need to display some posts using a custom select query. This custom select query needs to get the posts in two taxonomies.
Look the query:
SELECT *
FROM $wpdb->posts
LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID =
$wpdb->term_relationships.object_id)
LEFT JOIN $wpdb->term_taxonomy
ON($wpdb->term_relationships.term_taxon...
Wordpress ships with the wpdb class which handles CRUD operations. The two methods of this class that I'm interested in are the insert() (the C in CRUD) and update() (the U in CRUD).
A problem arises when I want to insert a NULL into a mysql database column - the wpdb class escapes PHP null variables to empty strings. How can I tell Wor...
How do I make an image appear on the top of a page and not showing up in the listing post of my upcoming website: www.xternalit.co.uk?
Example: when i type: abcdefg then "more option"
then below "more option", id have an image. When the user click on "read more" they will see "abcdefg then an image. I dont want that. I want when they ...
What I'm trying to achieve is showing only certain pages in a loop. 3 certain pages, not more, not less.
I've tried many things but I just can't complete it.
<?php
$special_tabs = new WP_Query(array ('post_type'=>'page','post__in'=>array(100,102,104)))
?>
What this does, from what I understand, is that it shows an array of pages ...
My wordpress*(a custom template)* nav is all working on all of the pages but now I found out that the Main nav doesn't show on this pages
All pages e.g. search.php, single.php, index.php, page.php all has <?php get_header(); ?>
I really don't know whats wrong.
Here is the code for my header.php
<?php
/**
* @package WordPress
*...
I'm working with a script in which the postid of the page has been reset via a script include. How can I retrieve the actual true post id and reset its value once it has been changed via script?
Here is the script that I'm referring to. Somewhere in there, the postid is being reset so that the page's the_content() call is no longer pull...
I am trying to create this tooltip sample for my wordpress it works just fine but as soon as I integrated it in wordpress I can't get the tooltip to show up. The page where I want to work is here
ok I did a little experiment this is test versionand this is the wordpress version. The test version is the code when you do a view source a s...
Really, really trying to find a plugin that gives adds functionality to the image-resize functions in Wordpress's WYSIWYG editor. Something where the use of 'Gallery' is not mandatory – just an upload straight from the post editor.
In a post, when an image is linked to from another site, there are less options – unlike when an image is...
I've got 2 WordPress plugins (PhotoSmash and TwitPic-It) that need to hook into the SWFUploader for the Media Uploader in WordPress. SWFUpload has a setting "upload_start_handler" where you can specify a javascript function that will run immediately before the upload begins. The trouble is that I need to assign 2 different functions to...
I need to retrieve a specific post to display on my websites front page.
To avoid hard coding the post ID, I've added a custom property where I add the post ID.
The following code displays the wanted post:
(The code is within the LOOP)
// Get content from specific post (in this case, Åpningstider post))
$openingHoursID = get_post_meta(...
I have a client who's wordpress sites have gotten hacked twice by iframe scammers. Each time they've injected iframe code into the content of the sites.
This last time, today, they simply changed the siteurl in wp_options to their iframe code. The result was obvious and appeared to simply botch the paths of the scripts that rely on
<?...
I'm trying to utilize the power of wordpress to set up a blog on my site.
I got it to install fine, but when trying to use wordpress's functions in a CI view the functions are undefined.
http://codeigniter.com/forums/viewthread/48347/ I am following this.
I put the require('blog/wp-blog-header.php') in my index.php file(ci) on the roo...
Do you know any stand-alone client or web tool (like grc) that could scan, find and report Wordpress vulnerabilities, plugins included?
...