Milo

San Francisco

metaflora.net

I like bicycles and cats.

http://metaflora.net/

4h
comment URL rewrite custom taxonomy using add_rewrite_rule() or generate_rewrite_rules()
you don't need to add rewrite rules for this, you can get WordPress to generate the rules for you by setting the appropriate arguments when you register your post type and taxonomy, see this answer.
9h
comment Problems with plugin that fetches data from database with ajax
Start by reading AJAX in Plugins to learn how to properly use AJAX in WordPress.
23h
comment Multiple Loops on a Custom Homepage
use custom fields on your homepage to store what pages you want displayed by their ID, then the data is one place and there is no chance of duplicate. if you use slugs you have to update 4 pages when you want them to change.
1d
comment Multiple Loops on a Custom Homepage
if feature1 or feature2 are children of pages, then pagename has to reflect the parent/child path. otherwise, there's nothing wrong with those queries, except that all arguments except pagename are redundant and can be removed, as duplicate slugs aren't possible using the pagename argument. but yes, a custom field would be a better way to do this rather than page slugs.
1d
answered Change Permalink to Value of Custom Field
1d
answered How to Include Custom Post Content From Plugin
2d
comment Page and Post Links broken but permalinks and .htaccess are good and static sub pages work
is your .htaccess file being parsed?
2d
comment When I Use function wp_insert_term() function it gives me Invalid taxonomy object
either you register your taxonomy on the wrong hook, or you try to run this code before the hook that registers your taxonomy. please add the context of where you execute this code, and add your code that registers your taxonomy.
2d
comment Page and Post Links broken but permalinks and .htaccess are good and static sub pages work
sounds like mod_rewrite isn't working, verify it's installed and functioning.
Jul
25
comment Some shortcodes breaking after AJAX call
when a post loads normally, some javascript runs to bind events to make things work, for example, the click event for the accordion. when you load the post via ajax, that javascript has already run, so new elements added to the page don't have those events bound to them. this is really a javascript issue, not WordPress.
Jul
23
comment Datepicker and advanced custom field plugin
where's the code you are using to do all of this? "please suggest something" is a rather vague request.
Jul
22
comment Using get_posts structure for a specific field
third-party plugin support is off-topic here, try the advanced custom fields support site.
Jul
22
comment Serve WordPress in root path of Apache
you did what? moved the files to root? if URLs are wrong, your site and home option values are incorrect.
Jul
22
comment Serve WordPress in root path of Apache
why do you not just move everything into html, rather than leave it in wordpress directory?
Jul
21
comment Sorting meta_value as integer doesn't work
var_dump $scoreboard and see what the query looks like and if it's being cast as int.
Jul
19
comment How to Combine Two Custom Post Types into Single Permalink Structure
there are 2 parts to this problem. first- rewrite rules to catch incoming requests. could probably solve this without having to write the rules yourself by adding rewrite endpoints, hooking pre_get_posts, and manipulating the query to grab whatever hotel/restaurant/etc, is requested. the 2nd part is generating the URLs, so the_permalink() outputs the correct parent destination in the URL. For that you'll need a UI solution to associate one post type to the other via a metabox, and a hook on post_type_link to build the URL. that's the best I can do on a friday night :)
Jul
18
revised tag.php doesn't work with tags on a custom post type post?
deleted 24 characters in body
Jul
18
comment tag.php doesn't work with tags on a custom post type post?
@MiniRagnarok - just add a check for $query->is_main_query() to the above to exclude all queries except the main query.
Jul
18
comment Infinite blog loop
the issue is that get_post_format() is empty for posts that are standard format, so you're loading content.php inside content.php, which then loads content.php, etc., in an infinite loop. you should rename the above content.php to something else if you want to use this structure.
Jul
18
answered Infinite blog loop
1 2 3 4 5