cebradesign
Forum Replies Created
-
Hello, manilLons.
I was also looking for an answer to this and came up with this code:
// Change CUSTOM_TYPE for your own custom type. function custom_yak_meta_box() { add_meta_box('yak','YAK Product Details','yak_editproduct','CUSTOM_TYPE','advanced'); // !!! } // Remove yak box from posts and pages function remove_yak_meta_box() { remove_meta_box('yak','post','advanced'); remove_meta_box('yak','page','advanced'); } add_action('admin_menu', 'remove_yak_meta_box'); add_action('admin_menu', 'custom_yak_meta_box');
I couldn’t find the entire source of this code, just what I found in the yak forum.
Hope this helps (it did to me!)
Forum: Fixing WordPress
In reply to: get_posts with meta_compare='LIKE' not workingHi, ranioli.
Have you try nesting meta_query?
$tolettpe = "Sale";//default if($_REQUEST['tolettype']) $tolettpe = $_REQUEST['tolettype']; else if($_REQUEST['srch_type']) $tolettpe = $_REQUEST['srch_type']; $args = array( 'numberposts' => $latestcount, 'category' => $catidstr, 'meta_query' => array( array( 'key' => 'property_type', 'compare' => 'LIKE', 'value' => $tolettpe.'%' ) ) ); $post_content = get_posts($args);
(Source)
When I find some troubles with retrieving posts with custom fields, this should be the best form. Anyway, that’s my experience.
Hope that helps!
Forum: Plugins
In reply to: Mini Loops pluginHi hendrikvb,
I think “Mini Loops” is accessing the data just fine but is unaware what the data is. For all it knows, it’s an image in the public_html folder.
“Magic Fields” has it’s own function to retrieve an image directly from the wp-content/files_mf folder:
<?php echo get_image('sidebar_thumb'); ?>
With that it should get the whole image folder without a problem.
Forum: Plugins
In reply to: [Theme My Login] [Plugin: Theme My Login] %username% in permalinkHi.
I tried that tag, but it didn’t work. With this development version you have to use %user_login%.
Thanks! ??What @phillbooth said…
I also gave 1 star to Britney…
Who would have thought it? xDI have the same problems that @figureone, specially that it cleans all line breaks of the text… :\
Forum: Plugins
In reply to: CForms II missing submit buttondid you find a solution to this??
thanksForum: Themes and Templates
In reply to: Filtering posts after category and a meta valueI guess you need to pass along the meta value also.
SELECT post.*, meta.meta_value AS release_date FROM $wpdb->posts post INNER JOIN $wpdb->postmeta meta ON post.id = meta.post_id AND meta.meta_key = 'date' AND meta.meta_value = '09/09/2010'
Didn’t test it so I don’t know if it works.
Cheers!
Forum: Fixing WordPress
In reply to: Password Protect Page TemplateCould it be something like…
if(!empty($post->post_password) and $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password)){ // here what to tell the visitor: it's a protected page blah } the_content(); // here we ask WP to ask for a password, content should be blank if (isset($_COOKIE['wp-postpass_' . COOKIEHASH]) and $_COOKIE['wp-postpass_' . COOKIEHASH] == $post->post_password){ // here it's the protected stuff... }
Hope it’s clear or helpful…
Forum: Themes and Templates
In reply to: Custom Template to be protection aware.Could it be something like…
if(!empty($post->post_password) and $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password)){ // here what to tell the visitor: it's a protected page blah } the_content(); // here we ask WP to ask for a password, content should be blank if (isset($_COOKIE['wp-postpass_' . COOKIEHASH]) and $_COOKIE['wp-postpass_' . COOKIEHASH] == $post->post_password){ // here it's the protected stuff... }
Forum: Themes and Templates
In reply to: Cannot save template changes to pageHi.
I have tried to solve this until this caught my attention: https://forum.bytesforall.com/showthread.php?t=39
There could be an extension called “Suhosin” limiting the number of variables that could be registered through a POST request (read: https://www.hardened-php.net/suhosin/configuration.html#suhosin.post.max_vars)
After I increase some values, I could post without any problem…
Forum: Themes and Templates
In reply to: Cannot save template changes to pagesame problem here…
Forum: Fixing WordPress
In reply to: Displaying name of current page in query_posts?Jusi,
That little piece of code has saved me plenty of research! heheTHANK YOU VERY MUCH!
??Forum: Fixing WordPress
In reply to: Organizing posts by category in a listingDid you find an anwser for this? I’m looking for the exactly the same thing! hehe Thanks!