cantondog
Forum Replies Created
-
Forum: Hacks
In reply to: Modifying Main Query Single Page RequestIf I’m understanding you correctly, you’re looking to just show a specific set of posts on a page? Usually you’d create a custom template with your custom query on it instead of using a default template in WP.
As far as switching something based on something used in the admin screen, I’ve used Advanced Custom Fields plugin for adding an option to a post screen, then filtering my WP query (in my custom template) based on that option at the time the page is rendered.
Forum: Hacks
In reply to: Query Custom Post Type By Category and AuthorYou should be able to just query the posts using the parameters for category and author (unless I’m understanding your question incorrectly).
Forum: Hacks
In reply to: update_post_meta() and wp_mail() when adding a new psotHave you tried using thiget_post_meta function instead?
https://codex.wordpress.org/Function_Reference/get_post_meta
That should grab all the meta function data after the post is made and you have the id of the new post.
Forum: Fixing WordPress
In reply to: Admin Dashboard BlankThere’s a couple of things to try on this post.
https://wordpress.org/support/topic/blank-admin-panel?replies=12
Forum: Fixing WordPress
In reply to: HTML5 Error – how to fixin the link href change | by %7C
Reference: http://stackoverflow.com/questions/25138137/illegal-character-in-query-not-a-url-code-point
Forum: Fixing WordPress
In reply to: Detect and format the previous day's the_date()Check out the variable $current_post here http://codex.wordpress.org/Class_Reference/WP_Query#Properties
You should be able to check if the current post has a > 1 index and then print your gap if that’s true.
same here. Only shows txt.css no matter which “theme” I choose.