I am using the Elementor Pro "Posts" Element, specifically the "Posts Per Page" attribute (set to 1) and it appears to work correctly in the design window, but when I view the changes to the live site it has broken.
I used the Custom Post Type "Podcasts".
I tried the Custom Post Type "Events" and it works as expected and I tried the regular "Posts" option and it works as expected. I added some dummy content to the Custom Post Type "Playlists" and it breaks.
So it appears to be an issue with any post type related to the audio player.
When you visit the page the top portion (underneath the header) is using the Post Element with a Custom Post Type set to "Podcasts" 1 Post Per Page.
Underneath that is a Posts Element with a Custom post Type set to "Podcasts" with posts per page set to 12 in a 3 column layout excluding the 1st post (so as not to duplicate the top).
In both instances every post in that Custom Post Type show up. No offsets, no 12 posts per page or 1 post per page just all the posts.
Attached is the picture of the design Window where it shows up properly.
got it. Its the first time I see this and we gonna investigate on this issue.
I see that there is a JS error on one of our files. could you please provide your error.log file (or access to your wp-admin so we can enable our debugger) so we can have a chance to see whats going on ?
Thank you for looking into it. Do you have an estimated time so I can figure out my workflow from now until close to when this will be released? I have a couple of options to work with until the time at which this is fixed depending on if it is going to take a couple of days or a few weeks.
Thank you. I removed the line and everything is, as you said, working.
Only other issue I am having is the player not opening on the home page when I click the "Listen" button. It should be calling the correct post-id as I used the Elementor "Launch the Audio Player" But maybe that is for another ticket.
I am using the Elementor Pro "Posts" Element, specifically the "Posts Per Page" attribute (set to 1) and it appears to work correctly in the design window, but when I view the changes to the live site it has broken.
I used the Custom Post Type "Podcasts".
I tried the Custom Post Type "Events" and it works as expected and I tried the regular "Posts" option and it works as expected. I added some dummy content to the Custom Post Type "Playlists" and it breaks.
So it appears to be an issue with any post type related to the audio player.
When you visit the page the top portion (underneath the header) is using the Post Element with a Custom Post Type set to "Podcasts" 1 Post Per Page.
Underneath that is a Posts Element with a Custom post Type set to "Podcasts" with posts per page set to 12 in a 3 column layout excluding the 1st post (so as not to duplicate the top).
In both instances every post in that Custom Post Type show up. No offsets, no 12 posts per page or 1 post per page just all the posts.
Attached is the picture of the design Window where it shows up properly.
Hi,
I dont quiet understand. Please give me the URL where the issue is present and give me access to your wp-admin so I can uderstand your setup/settings.
Thanks,
Max from the Sonaar.io Crew
Hi,
got it. Its the first time I see this and we gonna investigate on this issue.
I see that there is a JS error on one of our files. could you please provide your error.log file (or access to your wp-admin so we can enable our debugger) so we can have a chance to see whats going on ?
Thanks,
Max from the Sonaar.io Crew
Thank you for looking into it. Do you have an estimated time so I can figure out my workflow from now until close to when this will be released? I have a couple of options to work with until the time at which this is fixed depending on if it is going to take a couple of days or a few weeks.
Thanks again for getting to this so quickly.
Hi,
edit file called posttypes.php which is located in wp-content/themes/sonaar/includes/sonaar-music/includes/
around line 424, remove this :
if ( 'podcast' == $post_type && !is_admin() ) {
$query->set( 'posts_per_page', -1 );
}
And your issue gonna be fixed.
If you want, I can do it for you if you give me access to your FTP.
Thanks,
Max from the Sonaar.io Crew
Thank you. I removed the line and everything is, as you said, working.
Only other issue I am having is the player not opening on the home page when I click the "Listen" button. It should be calling the correct post-id as I used the Elementor "Launch the Audio Player" But maybe that is for another ticket.
Fixed. see screenshot of what I did: https://d.pr/i/W9vCm6
Thanks,
Max from the Sonaar.io Crew
I didn't even catch that. I appreciate everything. You have quickly worked through any issues I have had in the past and today. Thank you.