Hard code the nextpage tag into my theme?

This question was more extensively discussed at Hybrid support forum. I made and posted snippet for custom pagination of custom fields content there.

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