Problem with Simple Facebook Connect
I added “http://” in the Facebook URL (See the issue for more details).
I added “http://” in the Facebook URL (See the issue for more details).
Add before your code: $test_me = ce4_cat(); var_dump($test_me); Edit: Easier to read version: $test_me = ce4_cat(); echo ‘<pre>’; print_r($test_me); echo ‘</pre>’;
Your rewrite rules must not start with the first slash, that is already stripped out. So the following code will add a rewrite rule that will set a query variable that we can later use: add_action( ‘init’, ‘wpse9016_init’ ); function wpse9016_init() { add_rewrite_rule( ‘currentpage/(\d+)/?’, ‘index.php?wpse9016_currentpage=$matches[1]’, ‘top’ ); } This query variable is ignored unless we … Read more
Not sure if this is exactly what you’re asking, but it sounds like you’re looking for nested loops. This will list the most recent 5 posts in every category on your site: foreach ( get_terms(‘category’) as $category ) { echo ‘<h2>’.$category->name.'</h2>’; echo ‘<ul>’; foreach ( get_posts( ‘cat=”.$category->term_id ) as $post ) { setup_postdata( $post ); … Read more
Well, it seems that the author of WordPress MailChimp Framework is on indefinite vacation. So I suggest to you having the same problem as this one is to go through the PHP MCAPI wrapper (http://apidocs.mailchimp.com/downloads/#php) since this one is directly supported by the MailChimp team. The team has updated the wrapper to handle dropped connections. … Read more
The convertEntities function was defined in utils.js, but if you use script concatenation this file would be included after it is needed. Because it was in a try-catch clause, the error was not (always) noticed. The solution is to include the convertEntities function before this code is loaded. In WordPress 3.1 this is now included … Read more
if(isset($_GET[‘get_tags’])): $output = array(); foreach(get_terms(‘post_tag’) as $key => $term): // filter by $_GET[‘q’] here if you need to, // for eg. if(strpos($term->name, $_GET[‘q’]) !== false)… $output[$key][‘value’] = $key; $output[$key][‘name’] = $term->name; endforeach; header(“Content-type: application/json”); echo json_encode($output); die(); endif; in this case your js would be something like: $(“#input_1_3”).autoSuggest( “http://yoursite.com/?get_tags=1”, {selectedItemProp: “name”, searchObjProps: “name”});
Try: <div id=”<?php the_title(); ?>-<?php the_ID(); ?>”> This should give you a result of: <div id=”Post Title-PostID”> Giving you a unique wrapper for each post.
You can hook an ‘init’ action callback in which you get the post-type and if it’s ‘event’ check $_POST for if your taxonomy value is empty. If it’s empty, you can then reset $_POST[‘action’] to ‘edit’, so that post.php simply reloads the editor. And you can inject $_GET[‘message’] = 11 and add your (11th) response … Read more
If anyone else is interested, this is how I solved it: I created a custom feed as a page template. As RSS 2.0 doesn’t support images for each entry/item, I created an Atom feed instead; all that contains is the image and the text as I have it formatted in my question above. Then I … Read more