I create a view, and try to override one field using views_embed_view.
Here is my code in views-view-field--nid-1.tpl.php:
print views_embed_view('total_members_number','default',$output);

I get the correct result.But when i add more test datas, I find that the pager disappear.

When i change the code of views-view-field--nid-1.tpl.php to:
print $output;

The pager appear.

It seems that i could not use views_embed_view in another view's tpl file.

Comments

dawehner’s picture

The problem is probably that you have the same pager id's for both views.

In views you can configure the pager id's in the pager settings.

g089h515r806’s picture

Status: Active » Fixed

Thanks dereine.
Fixed by your suggestion.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.