24,131 reputation
1817
bio website
location San Francisco
age
visits member for 2 years, 1 month
seen 17 mins ago
stats profile views 723

yay


Apr
4
comment Custom Post Type nest under a normal WordPress Page
Have you tried making the post type non hierarchical? I've used a parent/child page as slug in the past without issue. To get the proper menu highlighting you can filter nav menu css classes. I wouldn't touch the post parent field, I don't see how that would really be useful anyway.
Apr
4
comment How to backup custom admin panel's settings?
the decoded version is serialized data.
Apr
3
comment WP-Paginate giving “Page not found” error on page 2
there are many questions on this site dealing with this issue. you create a new query to display posts, but try to use the default query to determine pagination. the two queries queries are unrelated.
Apr
3
comment Custom column working problem
this is a server configuration issue. the answer is right there in the error message, allow_url_fopen is set to false. you'll have to ask your host if it can be enabled.
Apr
3
comment Change the style of h1, h2, only in post entry
I'm not clear on what you're trying to change. Those styles look like they are for the front end, this is for changing what text looks like in the back end- only the editor, not what visitors see.
Apr
3
comment Pagenavi not showing
the wp_pagenavi function operates on the default query unless you pass a query object to it. you can't paginate results from get_posts with the function.
Apr
3
comment Save Google geocoded address to database?
you've hinted at the answer to your own question, save the data into post meta on the save_post action.
Apr
3
comment Wordpress in “Couch Mode”?
WordPress has its own internal rewrites, which this is a part of, so you won't see anything change in .htaccess. No changes to that file are needed for this to work. The second bit of code is what is checking if read exists in the request, that also goes in your functions.php file. It's hooked to a filter that runs when WordPress is loading the template for a single post, and overrides the normal template selection to load your special template. You will still need to manually append /read/ to the end of any post permalink you want viewed via your read.php template.
Apr
3
comment How can I update options with javascript?
see AJAX in Plugins.
Apr
2
comment Problem with permalink structure of parent-child custom post type
that code doesn't have anything to do with how the permalinks are generated. what is the code that registers your two post types?
Apr
2
comment Problem with permalink structure of parent-child custom post type
how have you created the parent/child relationship between two different post types? this is not native WordPress functionality, so you must be using a plugin of sorts for this. if you register two different types, by default they will naturally have your desired URL structure.
Apr
2
comment Scale Images Using PHP
This is accomplished via CSS. PHP can't scale an image without resizing it.
Apr
2
comment how to get the variable passing through the ajax url in wordpress query
Start by reading AJAX in plugins to learn how to properly use AJAX in WordPress. Your method is destined to fail, you cannot call WordPress functions in a theme file you load directly.
Apr
2
comment Rewrite URL in wordpress
rewrite rules are used for parsing incoming requests, they don't magically transform a GET request to a pretty permalink before the user's eyes. if you want the pretty permalink, you have to change your javascript function to output it in the format you want.
Apr
2
comment Wordpress in “Couch Mode”?
If you're getting your server's 404, that means you got your rewrite rule wrong. That article is a bad example of how to accomplish this, try looking around this site for some examples using add_rewrite_endpoint.
Apr
2
comment How to show Hit Counter in WordPress without using plugins?
and why won't the code in the question you linked work for you?
Apr
2
comment How to show or hide a post based on meta_value selection?
it's not going to work on the main query of a single page, it has to be an archive of some sort- the main posts page, a category, a custom post type archive, etc., or otherwise you need to create an additional query.
Apr
2
comment Countdown to date function?
I would start by searching the web for php subtracting dates.
Apr
2
comment How to show or hide a post based on meta_value selection?
if you are creating a custom query via WP_Query and not altering the main query, then just add the meta_query parameters directly to your query.
Apr
1
comment I don't need 'view' page for my custom taxonomy
setting query_var to false only works when pretty permalinks aren't enabled, you need the rewrite argument as well to cover all bases. deleting my answer and upvoting yours :)