Pages 404 in wordpress

Like Manish, I think the issue is with AllowOverride. The following is based on a Debian server. Ubuntu, if you are not aware, is based on Debian. In your apache2/ directory, you should have a sites-available/ and a sites-enabled/ directory. Disable your site with a2dissite Edit the appropriate file in sites-available/ to include the AllowOverride … Read more

Multiple textdomains

You can call load_plugin_textdomain() multiple times in each plugin, but I would not do that. Put the common files into a separate plugin, for example luke-carbis-library. In that plugin create two simple functions for setup and loading extra files: add_action( ‘plugins_loaded’, ‘lcl_init’ ); function lcl_init() { $dir = plugin_dir_path( __FILE__ ); $url = plugins_url( __FILE__ … Read more

Conditional add_filter?

From the looks of your code, clicking on the #customAttachments field is firing a jQuery event that calls a tb_show() method to load the media-upload.php file with certain GET parameters already set (post_id, type, TB_iframe). What you could do is add another GET parameter and check if that’s set in order to execute your add_filter() … Read more

How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’

Updated: First, you will need to return a bool value on your notifications method so we can reliably set a marker for the message method. Then, you will need to set a $_POST array element to pass on to the redirection filter. public function save_post($post_id){ //Add a $_POST key if you syndicated successfully if($this->send_group_notifications()) //return … Read more

Filters ‘request’ and ‘parse_query’ not firing in sites.php nor link-manager.php

I managed to order the link-manager.php by a custom column using this: /* * Sort links using the custom column link_image */ function sort_on_field(&$objects, $on, $order=”ASC”) { $comparer = ($order === ‘DESC’) ? “return -strcmp(\$a->{$on},\$b->{$on});” : “return strcmp(\$a->{$on},\$b->{$on});”; usort($objects, create_function(‘$a,$b’, $comparer)); } function brsfl_link_manager_order($links) { global $current_screen; if($current_screen->id == ‘link-manager’ && $_GET[‘orderby’] == ‘link_image’) { … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)