templs
Forum Replies Created
-
Right.
Check it for archive.php first
If it works try it for index.php, search.php and single.php if needed.Hi Scott,
Try is_category() function.
For example:
...
<div>
<?php the_excerpt('Read more »'); ?>
<?php
if(function_exists('wp_gdsr_render_article')){
if(is_category( array( 9, 'blue-cheese', 'Stinky Cheeses' ))){
wp_gdsr_render_article();
}
}
?>
<p class="postmetadata">
...For specifying list of categories you can use term_ID 9, or slug “blue-cheese”, or name “Stinky Cheeses”.
Forum: Plugins
In reply to: Jetpack Subscriptions – shortcode?Just found that I need shortcode too. 🙂
Removed unnecessary strings. Doesn’t work without defined COOKIEHASH only.
define('COOKIEHASH', md5('mydomain.com'));– this code required in wp-configCan you answer why is that?
It Works with BuddyPress!
Here is example:
Blog A – Buddypress
Blog B – WordPress
(shared user&meta tables)The only problem – plugin doesn’t work without additional code in wp-config (see above).
Thanks though…
Ok, I found what happened.
BP isn’t the reason 🙂The problem appears when I register on blog A, login there and try to open /wp-admin/profile.php on blog B or C.
In this case I’m getting “You do not have sufficient permissions to access this page.”Visiting wp-login.php for each blog fixes that (it even doesn’t ask for pass). After that all necessary prefixes add and all works like a charm.
So, is it possible make adding all prefixes to meta when user register?
Or maybe it’s possible make it when user visit his /wp-admin/profile.php ?Forum: Plugins
In reply to: Share Users across multiple WordPress sites and phpBBHi,
I have a solution for latest WP 3.3.1 (check it here)
But I’m not sure if it works for phpBB…Forum: Fixing WordPress
In reply to: How to share users tables in 2 separate installationsIt seems to me all existing tutorials are working only with WP 2.
What about WP multisite feature? It has domain mapping…
Ok, just check this if you really need them separate.
Forum: Fixing WordPress
In reply to: Sharing user's over two blogs on same domain BuddypressDefining user tables in wp-config is not enough.
You need solve trouble with cookies and prefixes for users and admin.Here is solution for separate WP 3.3.1 installations.
I didn’t checked it for buddypress yet.
I’m going to find solution for WP + BP too.But my first idea is to set BP as main site. Other WP installations are secondary.
Forum: Fixing WordPress
In reply to: 1 login, 2 WordPress sites, subdirectoriesI was trying to share user tables on WP 3.3.1
But defining cookies like kiranthomman described didn’t help…I found root Cookie plugin which really helped.
Here is how I did this:
http://nokeywordinurl.com/2-wordpress-blogs-with-1-users-table-and-1-login/cookies is a nightmare 🙂
Forum: Installing WordPress
In reply to: WordPress 3.2.1 – Share user tableDid you already solve you problem with tables sharing?
Check this Step-by-Step solution for WP 3.3.1Forum: Hacks
In reply to: Universal Login for 13 Blogsthanks!
I mean – root Cookie works only when I add this code into wp-config:
define(‘COOKIE_DOMAIN’, ‘.mydomain.com’);
define(‘COOKIEPATH’, ‘/’);$baseurl = ‘http://mydomain.com/’;
$cookiehash = md5($baseurl);
define(‘COOKIEHASH’, $cookiehash);
define(‘AUTH_SALT’, ‘AUTH_SALT’.COOKIEHASH);
define(‘LOGGED_IN_SALT’, ‘LOGGED_IN_SALT’.COOKIEHASH);
define(‘AUTH_COOKIE’, ‘AUTH_COOKIE’.COOKIEHASH);
define(‘SECURE_AUTH_COOKIE’, ‘SECURE_AUTH_COOKIE’.COOKIEHASH);
define(‘LOGGED_IN_COOKIE’, ‘LOGGED_IN_COOKIE’.COOKIEHASH);
define(‘TEST_COOKIE’, ‘TEST_COOKIE’.COOKIEHASH);Please help to find out why plugin doesn’t work without this code…
First question solved by defining cookies in wp-config.
Thanks!