ionicthemes / ion2fullapp

This is our public repository for customers to report bugs about Ion2FullApp - Ionic Template
https://ionicthemes.com/product/ion2fullapp-full-ionic2-app-template-elite-version
6 stars 2 forks source link

Not loaded more than 20 post in WordPress Integration? #24

Closed pritiJI closed 5 years ago

pritiJI commented 6 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Thanks :)

Recent post loaded only 20post in Wordpress Integration how to load website all post with specific category/tags? Infinite Scroll working only for page1 and page2. how to display 50post/100post with spinner infinite scroll?

djabif commented 5 years ago

Hi, the wordpress rest api has an optional parameter to set the amount of posts you want to retrieve. Default value is 10. You can read more in: https://developer.wordpress.org/rest-api/reference/posts/#list-posts To change this value to 50 (to put an example) go to the wordpress service and go into the getRecentPosts function and add the per_page param like this:

return this.http.get(
      environment.wordpress_rest_api_url
      + 'posts?_embed&orderby=modified&per_page=50&page=' + page 
      + category_url)
    .map(res => res);
pritiJI commented 5 years ago

why you closed this thread?

On Wed, Jan 16, 2019 at 6:16 PM Dayana Jabif notifications@github.com wrote:

Closed #24 https://github.com/ionicthemes/ion2fullapp/issues/24.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ionicthemes/ion2fullapp/issues/24#event-2077299352, or mute the thread https://github.com/notifications/unsubscribe-auth/Apa2-j1HYo-UPY2ZkSfTiLanx6QNCYTBks5vDx8LgaJpZM4XZRf9 .

-- Priti Jha PHP Developer 8976503108

djabif commented 5 years ago

Because I posted the solution for your issue in https://github.com/ionicthemes/ion2fullapp/issues/24#issuecomment-454766591

pritiJI commented 5 years ago

yes, I know. but I am already written like that solution - per_page=100 but it is not sufficient for me. I want 100record show in one page and I have to show 800 records OR 1k records in app.(like pagination functionality of websites) so how to make this??

On Mon, Jan 28, 2019 at 8:10 PM Dayana Jabif notifications@github.com wrote:

Because I posted the solution for your issue in #24 (comment) https://github.com/ionicthemes/ion2fullapp/issues/24#issuecomment-454766591

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ionicthemes/ion2fullapp/issues/24#issuecomment-458157037, or mute the thread https://github.com/notifications/unsubscribe-auth/Apa2-rjWJQRADg0WYEVXzHAbx29awBM9ks5vHwvMgaJpZM4XZRf9 .

-- Priti Jha PHP Developer 8976503108

pritiJI commented 5 years ago

Infinite scroll is working for me but we have 1500records or it will be more in the future. your given solution I have already used. Can you help me?

On Wed, Jan 16, 2019 at 6:15 PM Dayana Jabif notifications@github.com wrote:

Hi, the wordpress rest api has an optional parameter to set the amount of posts you want to retrieve. Default value is 10. You can read more in: https://developer.wordpress.org/rest-api/reference/posts/#list-posts To change this value to 50 (to put an example) go to the wordpress service and go into the getRecentPosts function and add the per_page param like this:

return this.http.get( environment.wordpress_rest_api_url

  • 'posts?_embed&orderby=modified&per_page=50&page=' + page
  • category_url) .map(res => res);

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ionicthemes/ion2fullapp/issues/24#issuecomment-454766591, or mute the thread https://github.com/notifications/unsubscribe-auth/Apa2-sN17vjvC5p9LZH73su5ZLl5XR2fks5vDx8HgaJpZM4XZRf9 .

-- Priti Jha PHP Developer 8976503108

djabif commented 5 years ago

Hi @pritiJI , can you please give me more info about your current issue?

pritiJI commented 5 years ago

Yeah Actually we have community type functionality on our website....Question&Answer we want to fetch all data in ionic app. This module of all functionality done in our app we have fetched n inserted through rest api but problem is that we have more than 1000 records n we used infinite scroll but we want that 1000 to 2000 records URL of WordPress rest api?? Can u help me about this? Please suggest me....how work this for large records data...how to make url for this with infinite scroll?

Per_page equals to 100 is note work properly because it's loading time is more.

On Mon 27 May, 2019, 2:55 AM Dayana Jabif, notifications@github.com wrote:

Hi @pritiJI https://github.com/pritiJI , can you please give me more info about your current issue?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ionicthemes/ion2fullapp/issues/24?email_source=notifications&email_token=AKLLN6VZLRXIXU7CYFXKHTTPXL54DA5CNFSM4F3FC762YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWINXVY#issuecomment-496032727, or mute the thread https://github.com/notifications/unsubscribe-auth/AKLLN6TICSDILLVO4PY62MLPXL54DANCNFSM4F3FC76Q .

djabif commented 5 years ago

what about using pagination instead of infinite scroll?

pritiJI commented 5 years ago

I have used infinite scroll only in ionic. I have no idea about pagination. can you suggest me some relevant links for reference? please help I have added an inifinite scroll to all but for QA community moduleI think to generate some issues. so please how to perform with pagination in ionic angular?

On Wed, May 29, 2019 at 11:29 PM Dayana Jabif notifications@github.com wrote:

what about using pagination instead of infinite scroll?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ionicthemes/ion2fullapp/issues/24?email_source=notifications&email_token=AKLLN6WBAZDNB3ESGV4BCL3PX3AARA5CNFSM4F3FC762YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWQEZZY#issuecomment-497044711, or mute the thread https://github.com/notifications/unsubscribe-auth/AKLLN6WVQR5B7QVYMFGGKFDPX3AARANCNFSM4F3FC76Q .

-- Priti Jha PHP Developer 8976503108