macleodjb
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: get posts is not working properlySince this forum completely sucks i was forced to circumvent my problem. This will be my last post here since I rarely get actual help here. Here’s some code if anyone else runs into the problem.
public static function get_cat_posts($cat_id, $number_posts){ global $wpdb; $querystring = "SELECT * FROM lp_posts " ."WHERE ID IN (SELECT * FROM (SELECT object_id FROM lp_term_relationships WHERE term_taxonomy_id = ".$cat_id." ORDER BY object_id DESC LIMIT " . $number_posts . ")"; $querystring .= " alias)" ."AND post_status = 'publish' " ."ORDER BY ID DESC"; $results = $wpdb->get_results($querystring, OBJECT); if(!empty($results)): return $results; else: return false; endif; }//EOF
Forum: Fixing WordPress
In reply to: get posts is not working properlyForum: Fixing WordPress
In reply to: failed to open stream: No such file or directoryMy var LC_THEME_DIR was being populated incorrectly.
I was using get_current_theme() function which was returning the name of the theme not the folder location. For the folder location you have to use the get_template() function.
Forum: Fixing WordPress
In reply to: problem with wp_rewriteDoes this forum offer any help?
Forum: Fixing WordPress
In reply to: problem with wp_rewriteAny help?
Forum: Fixing WordPress
In reply to: problem with wp_rewriteI’ve figured out that it a 1 character limit after mybasetag. So i can put a letter after mybasetag but only 1, if i put 2 it throws a 404. Any help?
Forum: Fixing WordPress
In reply to: Using WP_Rewrite FunctionI’ve come up with this but it doesn’t work. Any help
$newrules[‘^test$/([A-Za-z0-9-^_]+)’] = ‘^test/?id=$1’;
Forum: Fixing WordPress
In reply to: Custom Post Type Taxonomy Doesn't workThats my point. WordPress isn’t showing the category. Its only showing my custom post type.
like this https://mysite.com/{my-custom-post-type}/{my-post-slug}
it’s not doing https://mysite.com/{my-custom-post-type}/{my-taxonomy}/{my-post-slug}
Forum: Plugins
In reply to: Ajax is returning 0 alwaysYes, just insert die() at the end of the php function that you are running and you will avoid that.
Forum: Fixing WordPress
In reply to: Installed 3.1 and now my widgets don't work!@rotten Elf,
I’m a little shocked that you have all that completed and it is still broken. I loaded up a new website with wordpress tonight and let the twenty ten them match yours and I don’t have the issue. However, this is just a stab in the dark. when you are in your widgets section, at the top where you have the screen options pull down. Do you have accessibility mode enabled or disabled? Because if it is enabled your widgets will not move. Post your email address or website so i can take a look.
Forum: Fixing WordPress
In reply to: Installed 3.1 and now my widgets don't work!Tell me the exact theme name that you are using and I will find the problem for you. The only thing that makes the widgets work is javascript. So if javascript (jquery) is broken…guess what. It doesn’t work. Just tell me which theme and I’ll show you where to fix it.
Forum: Fixing WordPress
In reply to: Installed 3.1 and now my widgets don't work!@rotten Elf, the problem does not have to be theme based. It can be a problem within one of your plugins also. Some plugins are using jquery. But the problem is definitely with jquery. Unload all of your plugins and see if you still have the problem. I have not had this problem since i fixed it. In your case if you can switch themes and it persists, then it is one of your plugins that is registering jquery.
Forum: Fixing WordPress
In reply to: Installed 3.1 and now my widgets don't work!The problem is residing within jquery. You most likely have a theme which de-registers jquery and then re-registers another version. Take a look at your functions.php file and see if you find something like this.
wp_deregister_script( 'jquery' ); wp_register_script( 'jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js', false, '1.4' ); wp_enqueue_script( 'jquery' );
and make a change so this only fires on the front end and not the admin side. just by wrapping it with this.
if(!is_admin() ): {Place your register scripts here} endif;
It worked for me.
EDIT: I forgot to mention if your theme is using object oriented classes you may have to do a little digging to find these files. Take a look at all files that are being included within functions.php and you will eventually find it.