I know I can use activate_plugin() from inside a given, active plugin in WordPress, to activate another plugin. But what I want to know is how do I programmatically check if that plugin is already active?
For instance, this snippet of code can be temporarily added to an existing plugin's initial file to activate a partner plugin:
add_a...
I know I can use the wp_insert_post() function in WordPress to add posts programatically, but I want to add posts with a thumbnail, and for that matter, also resize/crop the post photo to the correct WordPress sizes.
Is all this possible programatically, or do I need to do some work manually (i.e. the resizing/cropping)?
...
Right now i'm on testing something in a database. It's a wordpress database. i have to write and delete and do other operation on it. As you know it, it has indexing mechanism that will always make every new post inherit the next highest possible ID.
Please consider that this database is a copying of used database. it has been written b...
With the current issues with Network Solutions sites being hacked, I'm in need of a tool (preferably freeware) that I can install into my site and it will email me the second a file change/update occurs.
Any recommendations welcome :)
This site is on a shared server hosting package.
...
Possible duplicate:
What’s open-source commenting system are available?
Hi,
I'm looking for a way to implement Facebook/Twitter/OpenID/... authentication on my WordPress blog.
I have found plugins for Twitter, plugins for Facebook, plugins for OpenID.. but I'm afraid integration of all thos plugins will be tough.
Also, I have f...
Hi,
I've created an HTML page as part of my website which I would like to use as a template for news articles. The page has all the things it needs, it just needs to display the correct news article in it.
I installed WordPress on my webserver and now wonder how I can have wordpress publish articles using my HTML page?
Is this even possi...
i still , don't understand , how wordpress can understand what is this url refer to :
www.mysite.com/about-me/
they are using no identifier
if they using slug functions so how they can retain story information or in other word , how they change back the slugged title to select from database
...
hey guys
i create two input text fields , one for title and another for permanent link
i need to update the second filed automatically when user is typing the tilte
how can i do such a thing in jquery /php
somehow im looking for a way to simulate wordpress creation of permanent link in post section
...
When submitting forms on a wordpress page with multiple checkboxes, on the first submit, when I print_r($_POST), the checkbox array shows two items without their values. Occasionally it works.
Here's the code:
<form action="<?php echo htmlentities($_SERVER['REQUEST_URI']); ?>" id="assessment-form" method="post">
<ul>
<li>
...
My website www.edesimusic.net and www.juraatmedia.com is infected with JS:Illredir-S [Trj] malware. My site keep on getting infected with some redirects or js scripts or iframe script, after cleaning them I change my passwords and it comes again after few days.
Can anyone tell me how to protect my websites properly and how to remove thi...
Hey guys,
I have a WordPress site for a client. He owns a video store, and I made a site for him to update the list of movies, usually just the "new this week" movies.
I used PodCMS as an easy way for him to upload movies and then display them. No need for him to even create posts. Works really well, it's a great extension, I'm just ha...
I have several categories in which I need to update/assign the parent category so that the default category (uncategorized) becomes the parent.
Its very easy to do this via the category manager, however, I need to do this via script.
...
The default WordPress categories widget does not allow excluding named categories.
I've created a plugin which creates adds a Customized category widget to the "Available Widgets" listing which gives me some control over the items I want to exclude. Code is below...
<?php
/*
Plugin Name: Custom Categories Widget
Plugin URI: http://mys...
one day after managing to defend against a massive DDoS attack now http://arabcrunch.com is hacked by someone who seems to change the posts title into Viagra ad on google search engine look how they damaged us:
.google.com/search?hl=en&client=safari&rls=en&q=Viagra+Online+Pharmacy+-+Buy+Online+Viagra%2C+Cialis%2C+Levitra+wordpress+hack...
Hello all,
I want to create a plugin for wordpress to automatically serve pages containing data pulled from a provider's API.
The API returns one or more records containing data for that record and I simply want to have the plugin intercept the request, call the API with parameters pulled from the request URI and display the data using...
This first bit works:
$my_id = 617;
$post_id_7 = get_post($my_id);
$title = $post_id_7->post_excerpt;
echo $title;
While this second bit doesn't:
$post_id_7 = get_post(617);
$title = $post_id_7->post_excerpt;
echo $title;...
Hello,
I think I can explain myself without code, so for brevity's sake here we go:
I am using jquery to pull data from an xml and put it into a ul on the page with each xml entry as a li. This is working great!
However, what I am trying to do afterwards is use the innerfade plugin to make a simple animation between each of the li's...
For some reason, the following is not loading my js and css into wordpress. This code is in an activated plugin, which is otherwise executing. Also, I checked and wp_head does exist in the theme.
add_action ( 'wp_head', 'lbIncludes');
function lbIncludes() {
wp_enqueue_script('jquery');
wp_register_script('myScript',
WP_P...
Hi
I have recently made a new WordPress theme (named {cssgroundup}) which I am using on my blog at www.richard-dickinson.com
It is only a basic WP theme for my personal use as I am quite new to the WordPress platform (?). It is a work in progress (as is the blog content!) however it displays alright in IE browser but not so well in Fire...
Hi,
I'm have some issues adding a class to 2 navigation links on a theme.
I need to add a class based on a url string as i'm redirecting the page to another.
You can see the blog here: http://208.43.250.67/~thingsig/
Links are: 'Blog' and 'Keepers'
I'm using the following code:
<script type="text/javascript">
if (window.location.pa...