sam
  • Member for 10 years, 3 months
  • Last seen more than 3 years ago
Wordpress slug issue with non-latin characters
Accepted answer
11 votes

Permalinks like http://example/שָׁלוֹם are actually working in my WordPress 3.3. Could be the remove_accents() improvements for i18n permalinks. As Sean & Steve noted, make sure you're using ...

View answer
Difference between w3total cache disk enhanced and disk basic
7 votes

You should use "Enhanced" if it's available. It serves cached pages using the server's URL rewriting capabilities, skipping PHP and WordPress entirely. It's faster and more efficient.

View answer
Must slugs be unique?
7 votes

In wp_unique_term_slug(): The $slug has to be unique global to every taxonomy, meaning that one taxonomy term can’t have a matching slug with another taxonomy term. Each slug has to be globally ...

View answer
Where can I find a list of WordPress hooks?
5 votes

Debug Bar Action Hooks plugin Displays a list of actions fired for the current request. Requires the debug bar plugin.

View answer
Odd Script File Trying to be Loaded
4 votes

In Network Admin > Settings > Domain Mapping > Domain Options, uncheck Remote Login. That should also remove it. In my case, the "script" just retrieves the home page (html), causing a script error ...

View answer
Disable only the main feed?
2 votes

add_filter('request', 'itsme_disable_main_feeds'); function itsme_disable_main_feeds($q) { $exit_msg = 'No feed available. Please visit the <a href="%s">homepage</a>.'; $...

View answer
WordPress Multisite, NGINX and WordPress Subdirectory Install
Accepted answer
2 votes

You might check in General Settings: Home URL should be http://example.com Site URL should be http://example.com/wp When you open http://example.com, what URL does it show for …/twentythirteen/style....

View answer
Programatically inserting terms doesn't update the Taxonomy admin UI
2 votes

Try clean_term_cache(); clean_object_term_cache();

View answer
Pagination broken when merging search results with additional WP_Query
1 votes

Filter the main query to include the additional posts. You can add query params with pre_get_posts or modify the SQL with posts_request or posts_where. Filter posts_results or the_posts to arrange ...

View answer
Regex in add_rewrite_tag not accepting OR operators?
1 votes

I don't know what's wrong but I can suggest: Use Rewrite Rules Inspector or similar to see where your %psubject% rule is and if its pattern ((option1|option2|option3)) has been added correctly. Test ...

View answer
complex restriction of items in media library
1 votes

Good code. I think you could simplify by making direct SQL queries instead: -- Featured Images SELECT `meta_value` FROM `wp_postmeta` WHERE `meta_key` = '_thumbnail_id'; --> $thumbnail_ids -- ...

View answer
Multisite htaccess on localhost with WP as an SVN external?
1 votes

Not sure if this is exactly relevant, but Before You Create A Network: WordPress_Settings_Requirements says Giving WordPress its own directory will not work in WordPress 3.0 with multisite enabled. ...

View answer
Different post sort order within different categories
1 votes

I know you said "posts & categories", but I think you'll do better connecting posts to posts and storing the order as post metadata: create a new post type, show (recommended, but you could use ...

View answer
Do WordPress Permalinks Refer to a Lookup Table in the Database?
0 votes

No, for the most part. WordPress stores its rewrite rules in the database. These are pattern-based rules for mapping URLs onto query parameters, and are determined by the permalink structure you've ...

View answer
How to resize images due to container width automatically server side/without CSS
0 votes

I think you just want add_image_size() and the_post_thumbnail(), e.g., add_image_size('article', 400, 300, /*crop=*/ true); add_image_size('overview', 200, 150, /*crop=*/ true); the_post_thumbnail('...

View answer
get_post_ancestors returns empty
0 votes

From 2.8 to 3.4 get_post_ancestors() could incorrectly give an empty result. It's supposed to be fixed in 3.5 so it should be safe to use now.

View answer
Does switch_to_blog support array or other ways to show all posts on a network install?
0 votes

switch_to_blog() switches to only one blog at a time, so could loop through all the blogs you're interested in and call switch_to_blog( $blog_id ) … restore_current_blog() for each one. If instead ...

View answer