saracup
Forum Replies Created
-
Forum: Hacks
In reply to: My Custom Permalink Variable PluginWow! Okay, so I put that in the plugin and it returns this:
Array ( [page] => [pagename] => privatenbauth-uva-only/funding-opportunity-test-post )
You can see it by clicking on this:
https://news.med.virginia.edu/deansoffice/privatenbauth-uva-only/funding-opportunity-test-post/
Thank you! I am learning a lot about debugging techniques.
Forum: Hacks
In reply to: My Custom Permalink Variable PluginOkay, I added the following to my plugin code:
echo
'<pre>'; var_dump($query); echo '</pre>'; die;
I get a white page that reads “NULL”
So, it’s not finding the link in the database.
In the database, the custom permalink pattern is recorded correctly in the wp_options table.
Forum: Hacks
In reply to: My Custom Permalink Variable PluginThank you so much for your offer!
This is the code that is looking for the posts within the custom taxonomy:
SELECT SQL_CALC_FOUND_ROWS wp_[ID]_posts.* FROM wp_[ID]posts INNER JOIN wp_[ID]term_relationships ON (wp_[ID]posts.ID = wp_[ID]term_relationships.object_id) WHERE 1=1 AND ( wp_[ID]term_relationships.term_taxonomy_id IN (4) ) AND wp_[ID]posts.post_type = 'post' AND (wp_[ID]posts.post_status = 'publish' OR wp_[ID]posts.post_status = 'private') GROUP BY wp_[ID]posts.ID ORDER BY wp_[ID]posts.post_date DESC LIMIT 0, 1
When I run the above query directly to the database, I get the post I want. So, it’s something with the permalinks, don’t you think?
Once I click on a link that results from that query, I get this in the 404 page:
SELECT wp_[ID]_posts.* FROM wp_[ID]_posts WHERE 1=1 AND (wp_[ID]_posts.ID = '0') AND wp_[ID]_posts.post_type = 'page' ORDER BY wp_[ID]_posts.post_date DESC
When I run the above query directly in the database, I get zero records returned. Wondering why it’s asking for a post ID of ‘0’ and post_type of “page.”
As for the var_dump from pre_get_posts, I confess to not being able to figure out how to make that happen. Do you have some sample code, and to what do I hook it?
Again, thank you for being so willing to help!
Forum: Hacks
In reply to: My Custom Permalink Variable PluginThank you so much. I did use these hooks, but haven’t seen anything obvious yet. Will keep at it — there has to be a logical explanation. Again, thank you for taking the time! -Caty
Forum: Plugins
In reply to: [WP UI - Tabs, Accordions, Sliders] Why Are All Accordions the Same Size?I am having the same issue. I have unchecked the “autoheight” in the admin panel. All panels appear to have a fixed height of 145px in an inline style. I can’t find where it’s getting this value, nor how to change it to “auto”. This happened with the upgrade to 3.6. Here is my link. Some panels have content that is hidden by the fixed height:
https://research.med.virginia.edu/clinicalresearch/research-resources/research-cores/
Forum: Plugins
In reply to: [Document Repository] Permalinks IssueRon, I’ve revisited this issue and still having troubles. Here is exactly what is happening, and I’m flummoxed for sure:
1) Permalinks set at https://research.med.virginia.edu/clinicalresearch/sample-post/
2) Create new document post and name it, then attach document.
3) Check server, and document is indeed uploaded to its correct location.
4) Document shows at bottom of editing page with correct name.
5) PUBLISH post, and permalink is displayed correctly in the editing screen.
6) Link returns a 404.Also important to note that the upload directory for this multi-network install is “blogs.dir.” I am using this on another multiSITE install, with all the same themes and plugins, and it uses “uploads”. The multiSITE install is having no trouble.
I’m lost as to whether this is a multinetwork (networks+) issue, a wp-config issue, or a Cathy issue. Any insight?
Thanks!
Forum: Plugins
In reply to: [Document Repository] Permalinks IssueRon, yea, I know that trick. Still made no difference. It’s weird. I’m using another plugin in the meantime, but I’m not happy about it ?? No worries.
Forum: Plugins
In reply to: [Custom Menu Shortcode] [Plugin: Custom Menu Shortcode] CustomizationCSS! Why didn’t I think of that!
??
Forum: Plugins
In reply to: [Document Repository] Update Not Registering in AdminGot it. I manually changed it in the other files.
Forum: Reviews
In reply to: [Document Repository] Working now for 3.6To everyone — this is now working with 3.5!
Forum: Plugins
In reply to: [Document Repository] Confine Search to Documents Only on Single InstallThanks Ron!
Forum: Plugins
In reply to: [Document Repository] Update Not Registering in AdminWondering if it’s because the taxonomies and roles files indicate they are version 0.2.4.1 and the main plugin indicates it’s 0.2.5?
Forum: Hacks
In reply to: Filtering by Date Range Against a Global VariableRon, thanks again. It’s working with the nesting, but the arguments from the original function, which filtered by date range, are now lost. I’m thinking there’s an easier way to get there — maybe by having folks categorize by issue number.
Thank you for everything!!!!
Forum: Hacks
In reply to: Filtering by Date Range Against a Global VariableOh, by the way, the inline font tags are due to the fact that this outputs to a table-based layout for html email.
At any rate, does anyone have any clue as to why my query is not respecting the parent category when I have it nested within the “foreach” construct? I’m sure this is major stupid, but any help would be most appreciated ??
Forum: Plugins
In reply to: [WP101 Video Tutorial Plugin] Multisite InstallThe answer is to put it in the wp101.php file. There is a place for the API key there. Thanks to all for your help!