Forum Replies Created

Viewing 15 replies - 286 through 300 (of 3,008 total)
  • Thread Starter Doodlebee

    (@doodlebee)

    ah, excellent test – thank you. And no, it’s not returning the correct stuff – so something’s gotta be wrong with my syntax…

    Thread Starter Doodlebee

    (@doodlebee)

    Yes! That’s what I originally tried (it made the most sense) but it wasn’t working. here’s what I had before I tried the magled stuff above:

    $query = array('orderby' => 'author',
    			  'post_type' => 'author_posts',
    			  'tax_query' => array('taxonomy' => 'author_category',
    					    		  'terms' => 'campaigns',
    					    		  'field' => 'slug'
    					    		  )
    			);
    
    smart_archives('format=fancy', $query);

    it seems it doesn’t mix well. if I leave off the “orderby” and “post _type”, and just stick with the tax_query, it returns regular posts (but why, I have no idea, since there are no regular posts using the custom taxonomy); but if I leave off the tax_query, it’ll return all the author_posts (custom post type) – which is what it should do – but I also need it to only return the custom post type that’s in that custom taxonomy.

    Thread Starter Doodlebee

    (@doodlebee)

    That’s the question, what I’m trying isn’t passing it. So far, I’ve got this, but I’m pretty sure I’m going about this the wrong way:

    class SAR_Custom_Generator extends SAR_Generator {
    
     protected function generate_fancy() {
    	function custom_tax_filter($query) {
       		 $query->set('tax_query', array(
                'relation' => 'AND',
                array(
                      'taxonomy' => 'author_category',
                      'field' => 'slug',
                      'terms' => 'campaigns'
                      )
                )
               );
              return $query;
    	}
    	add_filter( 'pre_get_posts', 'custom_tax_filter' );
     }
    
    }

    ’cause it’s totally not doing anything at all. (I think it’s probably in the add_filter section, mainly because I think this needs to happen before when I’m calling it, if that makes sense). I’m still playing with it to see what’s happening.

    Thread Starter Doodlebee

    (@doodlebee)

    nevermind – found it!

    Thread Starter Doodlebee

    (@doodlebee)

    Well, that’s even better! Awesome! Thanks!

    Thread Starter Doodlebee

    (@doodlebee)

    Okay, I got it sorted. I just removed the redirection module from the plugin and used a WordPress function:

    function redirect_to_profile() {
    	$who = strtolower(sanitize_user($_POST['log']));
    	$redirect_to = get_option('home') . '/profile?' . $who;
    	return $redirect_to;
    }
    add_filter('login_redirect', 'redirect_to_profile', 10, 2);

    Hope that helps someone else!

    Thread Starter Doodlebee

    (@doodlebee)

    forgot to link to the plugin in question:

    http://wordpress.org/extend/plugins/theme-my-login/

    Thread Starter Doodlebee

    (@doodlebee)

    Okay, I know it’s only been a few minutes, but I have an update: I tried it again. Funnily enough, it worked fine. BUT when I added another category, the child Pages went to 404’s again. The hoops I had to jump through are as follows:

    1. When creating a new category, I’d have to deactivate the plugin. (upon doing this, all the child Pages would redirect to the home Page.)
    2. Go to the parent FAQ page and remove the [qa] shortcodes, and save it. (after doing this, the child Pages with the [qa] shortcode in it would finally go to their own Pages, as they should)
    3. Go back to the parent FAQ page, and re-enter the shortcode.
    4. Re-activate the plugin.

    As long as I did those steps after I created a new category, the plugin would work fine, and all the Pages would show as they should. Adding new FAQ questions doesn’t seem to have an effect on this – only adding new categories does.

    So whatever bug this is, hope that helps somehow.

    Plugin Author Doodlebee

    (@doodlebee)

    Sorry stomperz – I didn’t see this until *just now* when I was searching for something. (you tagged it incorrectly, so the question has never showed up for me).

    You can do this by using the HTML character for the square bracket (which is & #91; – no space, of course), instead of typing just the bracket itself. (probably too late to tell you this, but I thought I’d pop it in here since I could, just in case.) It is a good thought about stripping the shortcodes so you can see the instructions for them, but unfortunately (in my experience anyway) people still want to use shortcodes within the instructions for various reasons, so stripping them all would send a wave of complaints on that end as well.

    I would imagine someone wanting to pop in code of any kind might have this issue, so it’s a good thing you brought this to my attention, i think. So I’ll see if I can’t work out some sort of “commenting system” (like maybe what the forums here use?) to filter out stuff you want to show the “code” for.

    Again, sorry it took so long – I never saw this. I’ve put in the proper tag, though, so it’ll show up for me now.

    Plugin Author Doodlebee

    (@doodlebee)

    Okay, I just tested this on 2 sites I have, and they both show all the instructions you make (on the pages they’re supposed to be on) regardless of what your blog settings are. There is nothing limiting how many instructions show up. (I’m using a vanilla WordPress install.) So it’s got to be something conflicting – either a theme function or a plugin.

    If you do test (by deactivating plugins/switching themes) and discover what it is that’s conflicting, I’d appreciate it if you’d let me know. I like to try and figure out what conflicts with my plugin so others don’t have the same problem.

    Plugin Author Doodlebee

    (@doodlebee)

    But when I go to any of the options (all posts, new post, categories, or tags) none of the instructions actually show.

    The only thing I can think of with this is the ol’ “revert to default theme and turn off all other plugins” to see if there’s a conflict first. If it works, then you’ll know it’s either something in the theme or one of the other plugins that’s interfering. (and if it is, I’d appreciate knowing which theme or plugin it is so I can try and accommodate that).

    In fact, the only time they do show … is after saving an Instruction!

    that’s precisely correct – that’s the only time they should show after you’ve written it and hit “publish”. Drafts, etc. won’t show.

    What am I doing wrong? Or is there a limit on how many it will show?

    I don’t know. From your description, you’re doing everything just fine, but unless there’s a conflict with something else you’re using, or I can get in there to actually *see* what you’re doing, there’s not a lot to go on. There is no limit in how many can show – but perhaps… do you have a limit set for your “how many posts to show” setting? is it 2? that might have something to do with it. (I’ve never actually tested it against that…. there’s something to check on!)

    Plugin Author Doodlebee

    (@doodlebee)

    Actually, I don’t indicate that it was ever tested in multi-site. I’ve had a couple of people tell me it works there (so in previous versions I’ve mentioned that), but I’ve never used it/tested it myself in that environment, and I don’t advertise that it WILL work in multi-site. All it is, however, is a custom post type, and it’s set to allow Administrators only to create and edit the instructions. (There’s no allowance – yet – for super-admins) So unless there’s another plugin that’s interfering (perhaps with the jQuery toggle) I can’t imagine why it wouldn’t work in a multi-site environment.

    But again, it’s never been tested in that environment (mainly because no one has ever asked for it to be – and since I never use multi-site, I don’t have a setup where I *can* test it) but I can give it a shot for the next release. All I can say is, for now, the typical advice: try shutting off all the other plugins to see if there’s a conflict; swap to default theme to see if it’s something in the theme code/functions.php file, etc.

    In any case, with so little to go on in your comment, I really couldn’t troubleshoot – “it doesn’t work” doesn’t tell me anything about what’s going on, so if you can provide some more information, that would be helpful.

    Thread Starter Doodlebee

    (@doodlebee)

    Aha! Found this article, which seemed to help. The ticket that made it take for me was to open up my .htaccess file, and pop this in at the top:

    SetEnv PHPRC /home/usernamehere/public_html

    “usernamehere” being your site’s root username.

    THAT worked a treat! (Hope it helps someone else!)

    Thread Starter Doodlebee

    (@doodlebee)

    Okay, now I feel like an idiot. it happened again, and I finally figured out why.

    The client I did this site for had a “test server” that I did all the code and such on, so they could check and make sure everything was going how it was supposed to be going before we made it live. When I made it live, I moved the site, and then went through (as I do) and made the necessary changes.

    However the client – being as clients are sometimes – passed out the link to the *testbed site* to everyone, instead of the real *live* link. Why? I don’t know. People do weird things. i found this out last night when they were freaking out they *they* weren’t getting the notifications they were supposed to be getting, and everyone they sent to sign up didn’t sign up (but was telling them they did). They were all signing up on the wrong site.

    So THAT is now straightened out, anyway. (and i’m so glad to know it’s not MY fault. LOL) So the only ones left are old, old clients that I don’t even speak to anymore, and they don’t even use the sites anymore, and I can’t get them to remove me from the sites, so I’ll just have to deal, I s’pose.

    Thanks for the help! 🙂

    Thread Starter Doodlebee

    (@doodlebee)

    I’m not sure. I custom-wrote the themes, and I don’t have any options for emails. I dunno. it must be *something* I did! 🙂 I’ll keep digging.

Viewing 15 replies - 286 through 300 (of 3,008 total)