Jens Wedin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks in adminareaOk, thanks. But it would be a nice feature ??
Forum: Plugins
In reply to: search-everything : don’t search tags of draft postsThanks, both ‘mattebb’ and ‘daltonrooney’ tips works great.
Forum: Plugins
In reply to: Custom values and categoriesThanks a lot, you are a very nice man! That did the trick, from here I can make it work they way I want.
/Jens
Forum: Plugins
In reply to: Custom values and categories* bump *
(sorry for bumping)
/Jens
Forum: Fixing WordPress
In reply to: Custom user profileI second your first and second point. I’ve been looking around for this for a long time but no luck.
Forum: Developing with WordPress
In reply to: Link post together with custom metadataThanks for the reply!
I figured it out in another way. I used the wpdb class to query the db. This worked fine for me. Here’s the code that I used.
$key="Distillery"; $distilleryvalue = get_post_meta($post->ID, $key, true); $distilleryvalue = $distilleryvalue . " Distillery"; $distillery_id = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE post_title LIKE '%$distilleryvalue%'"); $distillery_id = $distillery_id->ID; $distillery_meta = $wpdb->get_col("SELECT meta_value FROM $wpdb->postmeta WHERE post_id = $distillery_id"); echo '<h2>Distillery</h2>'; echo '<ul>'; echo '<li>Region: ' . $distillery_meta[3] . '</li>'; echo '<li>Country: ' . $distillery_meta[7] . '</li>'; echo '<li><a href="' . $distillery_meta[9] . '">Official website</a>'; echo '<li><a href="' . $distillery_meta[0] . '">Location (at Google maps)</a>'; echo '<li><a href="' . $distillery_meta[1] . '">Buy bootles from this distillery (at the Whisky Exchange)</a>'; echo '<li><a href="' . $distillery_meta[2] . '">Read more at Wikipedia</a>'; echo '<ul>';
Forum: Developing with WordPress
In reply to: Link post together with custom metadataSorry for bumping but no one has a clue?
Forum: Plugins
In reply to: WP-OpenID and reCAPTCAHThe same goes for DG review site plugin
https://www.dangrossman.info/wp-dg-review-site/
Seems that everything else than the default form stuff do not get posted.
Forum: Installing WordPress
In reply to: Safe-mode error when upgradingThe owner and group is httpd (the apache user) and the ‘cache/users’ dir is set to 777 but not UID, GID and Sticky (not sure what they do?)
Forum: Fixing WordPress
In reply to: Cache folder and objectsThis is the error message.
—-
Warning: glob(): SAFE MODE Restriction in effect. The script whose uid/gid is 130296/130296 is not allowed to access /hsphere/local/home/jensw/jedisthlm.com/wp-content/cache/users/tmpnuKvtX owned by uid/gid 398/398 in /hsphere/local/home/jensw/jedisthlm.com/wp-includes/cache.php on line 225
———-
Forum: Fixing WordPress
In reply to: Cache folder and objectsI think this is the problem. Just upgraded to 2.0.1 and when doing the upgrade script I get these errors. I remembered that I had same errors when upgrading to 2.0.
Forum: Fixing WordPress
In reply to: Cache folder and objectsThanks for helping out, the size is 0kB, all the files are 0kB.
Forum: Fixing WordPress
In reply to: Cache folder and objectsJust had another look in the users folder. I was wrong when I said that I had around 2000 files, it was roughly 250000 files in the folder!!! Feels like a bug to me, or have I done something wrong?
Forum: Fixing WordPress
In reply to: Cache folder and objectsThe userlogin folder had even more files in it.
Forum: Installing WordPress
In reply to: Multiple upgradesThanks podz