77 reputation
8
bio website vajrasar.in
location
age 25
visits member for 2 years, 2 months
seen Oct 15 at 14:58

A simple human, in love with Music and Web.


Oct
15
accepted Different Front page for Mobile
Oct
15
comment Different Front page for Mobile
Sweet. This could surely be one way. I will wait for someone to chip-in with the method where I can switch front-pages, if not I will mark this as the right answer.
Oct
15
asked Different Front page for Mobile
Oct
14
comment Trying to Connect to different database
No, I tried this. This assumes that the $obj->ID resides in the current database (which in this case is main domain db) instead of going to subdomain's db and using get_permalink function there.
Oct
14
comment Trying to Connect to different database
Thanks @justin. I enabled WP-Debug and that pointed out the mistake. The problem was indeed with the connection settings. Thanks for the awesome explanation. I though, have updated the question (EDIT 2) can you please have a look?
Oct
14
comment Trying to Connect to different database
I've edited the question (Edit 2). Please have a look.
Oct
14
revised Trying to Connect to different database
added 871 characters in body
Oct
14
comment Trying to Connect to different database
Thank You guys. The problem was indeed with the databse connection setting. I was stupidly trying on the localhost instead of the live site. Pardon me for the silly mistake. Also @kaiser , I am using this approach because I do not know/see any other method to access database of sub-domain and fetch latest posts to show onto main domain's front page. I though successfully tried to fetch feed, but I want to access database because we want to reflect any change (or addition) in sub-domain's post immediately on to our main domain's front page.
Oct
13
comment Trying to Connect to different database
I again updated the question. Please have a look.
Oct
13
revised Trying to Connect to different database
added 123 characters in body
Oct
13
comment Trying to Connect to different database
I updated the question. Please have a look.
Oct
13
revised Trying to Connect to different database
added 203 characters in body
Oct
13
revised Trying to Connect to different database
added 54 characters in body
Oct
13
asked Trying to Connect to different database
Sep
24
awarded  Autobiographer
Sep
17
asked Assigning Terms in Taxonomy to Custom Taxonomy
Sep
17
comment Shared functionality in plugins and themes
@kaiser Thanks for the answer. I got the gist. Thanks a ton.
Sep
17
accepted Forcing a term/taxonomy on all posts of CPT
Aug
27
asked Forcing a term/taxonomy on all posts of CPT
May
4
accepted About Hooks and Filters