umchal
Forum Replies Created
-
Thanks for the reply.
If I modify the plugin code, when the plugin is updated, the changes will be gone. So it’s not ideal.
What about adding a filter like
$output .= apply_filters( 'some_appropriate_filter_name', '<a href="'.get_permalink($result->ID).'" '.$rel_attribute.' '.$target_attribute.'class="crp_title">'.$title.'</a>' );so an extension plugin can be written.
It would be great if it is implemented as an option though.
Forum: Plugins
In reply to: [Contextual Related Posts] Related Posts Shows up in the Front PageFound it, thanks.
Forum: Plugins
In reply to: [Contextual Related Posts] Related Posts Shows up in the Front PageThat excludes the ids from the results, meaning it does not disable the related posts to be inserted in the specific posts.
Forum: Plugins
In reply to: [Testimonial Basics] A warning message in debug modeIf I deactivate the plugin, it will be gone so I suppose so. It could be a conflict with another plugin. If I get time to test it, I’ll get back to you.
Forum: Plugins
In reply to: [Testimonial Basics] Include Custom ImageI see thanks for the quick response and the answer!
The correct filter for modifying the post contents was syndicated_item_content. Amazingly it receives the working object so the categories could be retrieved.
add_filter( 'syndicated_item_content', 'syndicated_item_content', 10, 2 ); function syndicated_item_content ($content='', $post='') { $link = $post->link; $cats = array(); if ('no' != $post->link->setting('add/category', NULL, 'yes')) : $fc = get_option("feedwordpress_syndication_cats"); if ($fc) : $cats = array_merge($cats, explode("\n", $fc)); endif; endif; $fc = $post->link->setting('cats', NULL, array()); if (is_array($fc)) : $cats = array_merge($cats, $fc); endif; $post->preset_terms['category'] = $cats; $out = '<pre>' . print_r( $cats, true ). '</pre>'; $out .= "<p>" . __FUNCTION__ . "</p>"; return $out; // return $content; }This plugin has a very nice code structure. Appreciate it.
Forum: Plugins
In reply to: [Syndicate Press] Warnings Everywhere in Debug modeHi,
Did you marked the thread as solved because it’s not a common issue? It’s a big issue for me and it’s not solved at all.
Sorry, I have to use another plugin then.
Okay, found it. ( https://easydigitaldownloads.com/docs/creating-custom-add-to-cart-links/ )
http://mysite/?page_id=4&edd_action=add_to_cart&download_id=8&edd_options[price_id]=2I see. Thanks for the response!
Forum: Plugins
In reply to: [Ultimate Maintenance Mode] Can I use XML-RPC in maintenance mode?Ops, terribly sorry. It was possible! I was accessing a different site.
Now I realized that Sync Filebase does not copy the download IDs so all the shortcodes in post and pages need to be rewritten in my case. I wish there were an easier way.
Also I wish file icons could be synched as well.
Forum: Networking WordPress
In reply to: Setting up Multi-Sites on Limited Sub-domain Access ServerThe current directory structure is like this:
– /home/myusername/public_html/wordpress
– /home/myusername/public_html/wordpress/.htaccess
– /home/myusername/public_html/wordpress/index.php
– /home/myusername/public_html/.htaccess
– /home/myusername/public_html/index.php
– /home/myusername/public_html/supportThe main site is installed in the wordpress directory.
I tried putting the following lines to .htaccess in /home/myusername/public_html/support. The directory has only the .htaccess file without index.php.
RewriteEngine On RewriteBase ../ RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) wordpress/$1 [L] RewriteRule ^(.*\.php)$ wordpress/$1 [L] RewriteRule . index.php [L]I hoped it would make a difference and it showed 500 Internal Server Error when support.mydomain.com is accessed. If I removed the .htaccess file, it shows the directory index.
I’m hoping that this could be achieved with ModRewrite rules. I tried creating a symbolic link but it is disabled by the server.
Forum: Networking WordPress
In reply to: Setting up Multi-Sites on Limited Sub-domain Access ServerI have two servers and one of it had the setting you mentioned (thank you so much!). However, the other server’s cPanel did not have the setting to change the directory. Actually that’s the server I’m planning to moving to.
Screenshot: http://s14.postimage.org/mhc1i11y9/subdomain_cpanel.jpg
I found the setting for DNS Zone but it seems I cannot have access to httpd.conf.
Thanks for adding it to your todo list! I’m looking forward to it.
I’ve realized that uploading files to one particular directory and performing Sync Filebase works nicely on multiple sites.