SpicyNumberOne
Forum Replies Created
-
Forum: Reviews
In reply to: [User Role Editor] Hidden from view and locked outThank you Vladimir! Problem solved switching from superadmin to admin. I revised my review too.
Forum: Fixing WordPress
In reply to: Custom Post Type Search Results Showing A Positive NegativesIf anyone who has seen this post and can pass it on to someone who knows PHP, SQL and WordPress search functions, I would be so grateful. At this point I will hire the person by the hour to fix this glitch, I just don’t know how to find and hire truly expert WordPress developers.
Here is the code that is producing results correctly when the search term exists, and produces 6 results when the search term does not exist.
<?php global $wpdb; $keyword = get_search_query(); $keyword = '%' . like_escape( $keyword ) . '%'; // Search in all custom fields $post_ids_meta = $wpdb->get_col( $wpdb->prepare( " SELECT DISTINCT post_id FROM {$wpdb->postmeta} WHERE meta_value LIKE '%s' ", $keyword ) ); // Search in post_title and post_content $post_ids_post = $wpdb->get_col( $wpdb->prepare( " SELECT DISTINCT ID FROM {$wpdb->posts} WHERE post_title LIKE '%s' OR post_content LIKE '%s' ", $keyword, $keyword ) ); $post_ids = array_merge( $post_ids_meta, $post_ids_post ); // Query arguments $args = array( 'post_type' => 'directory', 'post_status' => 'publish', 'post__in' => $post_ids, ); $query = new WP_Query( $args ); if ( $query->have_posts() ): while ( $query->have_posts() ) : $query->the_post(); ?>
To give more details about my problem, the meta is the root of the problem. Someone pointed out that they believe you should not merge the ids and the meta:
$post_ids = array_merge( $post_ids_meta, $post_ids_post );
Another suggestion to me was to use WP_Meta_Query to query the meta. But, all of my tries produced PHP errors because I am not fluent in PHP. This problem has become urgent, please help.
Forum: Themes and Templates
In reply to: Dropdown Menu Not WorkingThank you Andrew. You were so right. I forgot to put the sub-menus under the parent page in my custom menu. Duh.
Forum: Themes and Templates
In reply to: Dropdown Menu Not WorkingI understand. It turned out to be such a simple solution. I was using the menus section and forgot to put the submenu pages (children pages) under the main page (parent page). Hope this helps someone else down the road.
I do appreciate all the work you put in to making a plug-in, but the same goes for me. Without being able to link each image to a site, that sends me looking elsewhere.
Forum: Plugins
In reply to: [Collapse-O-Matic] First Accordion Expanded at onloadThank you! I overlooked that attribute when looking at the documentation.
I was able to solve this issue by commenting out the styles in styles.php and writing my own css in my default.css file.
.entry-content ul.GTTabs li { padding: 0 0 0 25px; background: url(nav-square.gif) no-repeat 0 2px; } .entry-content ul.GTTabs li.GTTabs_curr { padding: 0 0 0 25px; background: url(nav-square-green.gif) no-repeat 0 2px; }
And, put your images on the same level as your css file. The 1st image is for all the tabs and the 2nd is for the current tab.
Forum: Plugins
In reply to: [Wordpress Tabs] [Plugin: GT Tabs (formerly postTabs)] tab formating problemI find that commenting out the styles on styles.php and replacing them with you own css in your default.css file using padding is my general answer to fixing your design issues.
Forum: Plugins
In reply to: [Wordpress Tabs] Great plugin, but is there a way to hide Tab 1 Content?Go to line 4 of GTTabs.js and change:
jQuery('.GTTabs_curr_div').show();
to
jQuery('.GTTabs_curr_div').hide();
Forum: Fixing WordPress
In reply to: Use As Featured Image Link Gets Stuck On Saving…Thank you for the responses, I can see this is not a unique problem. So, to start, we need to find out if it is the hosting environment or the theme’s coding or the plugin. I deactivated NextGen Gallery and the problem persisted. And, even testing on a default theme, the problem persisted. But, I know that the problem started after I installed NextGEN. I build my own child theme from Thematic, so it may be the functions I created? I am a cut and paste php coder, so when I’ve made an error in the php, I don’t know how to fix it. If someone would like to view my functions.php file, I can send it to you. Or, if it is the hosting environment, I don’t what to say to the host. You know shared hosting, they are not going to get in your files and fix it for you. All they say to me, is “what errors are you seeing?” When I tell them it is an internal error in WordPress, they don’t know what to do either.