saracup
Forum Replies Created
-
Forum: Hacks
In reply to: Filtering by Date Range Against a Global VariableOkay, working on nesting the now-functional WP_Query() inside their respective categories. I’m trying to pass the variable from the array for that particular category ID so I can further narrow down each WP_Query. So far, no luck. I’ve put the words “ADDITIONAL ARGUMENTS HERE??” where I think I have to put the variable for the category ID. The category ID is parsing when I output the title for the category. Although the WP_Query is nested inside the “foreach” it’s not respecting the category and is returning all articles.
https://administration.emedicine.virginia.edu/medicinematters/test-email/
The custom WP_Query function:
function uvasomnews_filter_where( $where = '') { global $uvasomnews_issueStart; global $uvasomnews_issueEnd; $where .= " AND post_date >= '".$uvasomnews_issueStart."' AND post_date <= '".$uvasomnews_issueEnd."'"; return $where; } add_filter( 'posts_where', 'uvasomnews_filter_where' ); $uvasomnews_issue_query = new WP_Query( 'post_type=post&orderby=title&order=asc' ); remove_filter( 'posts_where', 'uvasomnews_filter_where' );
The output file (would love to put this separately in a functions file but am now testing):
<?php $uvasomnews_categories_args=array( 'orderby' => 'name', 'order' => 'ASC', 'cat' => '-'.$uvasom_news_main_feature ); $uvasomnews_categories=get_categories($uvasomnews_categories_args); foreach($uvasomnews_categories as $uvasomnews_category) { echo '<h2><a href="' . get_category_link( $uvasomnews_category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $uvasomnews_category->name ) . '" ' . '>' . $uvasomnews_category->name.'</a>cat='. $uvasomnews_category->term_id.' </h2> ';?></h4> <?php new WP_Query(ADDITIONAL ARGUMENTS HERE??); while($uvasomnews_issue_query->have_posts()) : $uvasomnews_issue_query->the_post();?> <p style="font-family:Georgia, 'Times New Roman', Times, serif;font-weight:normal;font-size:13px;margin:0px;padding:5px 0 0;"><a style="color:#333333;text-decoration:none;" href="<?php the_permalink() ?>" rel="bookmark"> <?php the_title(); ?> </a></p> <?php endwhile; //end wp_query } //end category foreach ?>
Forum: Hacks
In reply to: Filtering by Date Range Against a Global VariableRon Rennick to the rescue! The query now works. Now for the categories. Will post when that is resolved — have to go to the office!
Is this time entry feature there yet? Would love to use it!
Forum: Reviews
In reply to: [Document Repository] Working now for 3.6Ron, thank you for this! I just introduced this to UVA and now it’s broken so I eagerly await further instructions!
Forum: Plugins
In reply to: [Plugin: jetpack] site_inaccessibleWe are encountering the same problem. We have a multi-network WP environment. We installed JetPack on one site when we were running 3.2 (https://www.umw.edu/greatlives). The installation went fine and it’s still working well.
We since upgraded to 3.3. After the upgrade, we attempted to activate JetPack on other sites in our installation (https://admissions.umw.edu and https://www.umw.edu/advisories). We are getting the “site_inaccessible” message on these. Oddly enough, the original successful installation is doing fine.
We are thinking this may have something to do with the upgrade, but can’t find any answers to this in the forums. Thank you for any help you can give.
-Cathy
Well, it’s a conflict with the Infuzionwp plugin. This is the first time I’ve used that plugin, and it’s like an octopus that completely takes over the installation. Client has to have it.
You may want to know about it — infuzionwp does something to manage permissions on the server so people can subscribe to paid content. I think this is happening because of the atypical location of the plugin files. I LOVE THIS PLUGIN so don’t despair — I’ll see if I can let them know about it.
-Cathy
Just checked and the files were installed there by the plugin — they are already there. Is this a permissions thing? What should permissions be for this directory: 777, 755?
Thanks for a swift reply! I’ll try moving the files. the error is:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request.
I thought it may be a php issue at the server, but what do I know ??
Client uses GoDaddy FWIW.
Again, thank you!
-Cathy
Oh, the url of the installation is:
Forum: Fixing WordPress
In reply to: XML Import and Parent Page (post_page)NEVER MIND! I wasn’t importing the page IDs so it couldn’t find the parent IDs. Fixed now and very cool!
Forum: Plugins
In reply to: [SharePress] [Plugin: Sharepress] Plugin Activation Throws an ErrorThank you. I’m anxiously awaiting SharePress pro. We’ll be using it on a multi-network installation (like multi-site on steroids). Would love to get this to work!
Forum: Installing WordPress
In reply to: installing into existing databaseOkay. I tried it and get this:
Warning: Cannot modify header information – headers already sent by (output started at /home/arrested/public_html/broadus_wp21/wordpress/wp-admin/setup-config.php:23) in /home/arrested/public_html/broadus_wp21/wordpress/wp-includes/wp-db.php on line 361
…and the same database connection problem. I commented out the header line on line 361, but still got the database error.
Is this possibly my host?
Forum: Fixing WordPress
In reply to: How to install K2To my knowledge, K2 is a theme. Unzip it locally in your “themes” directory, then upload. Select the theme in your wp-admin file under Manage > Presentation > Themes
Forum: Installing WordPress
In reply to: installing into existing databaseYes. But, here’s the thing. When I follow the install directions (bear with me, because I’ve always used Fantastico, so this is new territory), it asks me to edit the config file, upload everything, and then run the install script (which I do by going to, in my case, https://arresteddeveloper.com/broadus_wp20/wp-admin/install.php).. That’s when I get the error, so, you see, it’s kind of circular. I get the error even when I leave the default “wp_” prefix.
Forum: Installing WordPress
In reply to: installing into existing databaseAHA! I’ve hit my “wall of stupid,” where it’s time to ask the really stupid question. What do you mean “installed under wp2_” prefix? I thought this was a PHP thing that would append calls to the database. I installed the blog in another sub-directory, at the same level as the current blog.
Okay, now that you know how stupid I am, would you still help me, or am I beyond hopeless?