• Knowledgebase
  • Questions
    • Questions
  • Ask a question
  • Log In
Extracoding Support Center
  • Knowledgebase
  • Questions
    • Questions
  • Ask a question
  • Log In

User Page: Number of Columns

Home/User Page: Number of Columns/
1.26K viewsOctober 26, 2018Uploader - Advanced Media Sharing Themeuploader
0
daneloctober47 October 5, 2018 0 Comments

Hi again,
We have overridden the file “users-list-view.php” because the number of posts it counts does not include the new post types we added. I made a change to this line:
<span class=”count”><?php echo exc_count_user_posts( $user->ID, array( ‘post’, ‘exc_image_post’, ‘exc_audio_post’, ‘exc_video_post’, ‘exc_embed_url_post’ ), array( ‘publish’ ) );?></span>
Change it to this:
<span class=”count”><?php $all_types = array(“post”,”exc_audio_post”,”exc_book_post”,”exc_embed_url_post”,”exc_link_post”,”exc_module_post”,”exc_video_post”); echo exc_count_user_posts( $user->ID, $all_types, array( ‘publish’ ) );?></span>
The new file now includes the new post types when it counts the number of “posts”, which works fine. We put it in our child theme root, and it overrides the Uploader parent theme users-list-view.php. But when I view the page: https://www.wabanakicollection.com/?exc_custom_page=users
It doesn’t follow the number of columns set in the theme options: https://daneloctober.tinytake.com/sf/Mjk3NTQxMV84OTIyODY5
Can you help me resolve it?

Extracoding Answered question October 26, 2018
Sorry, you do not have permission to read comments.

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
Register or Login

Recent Comments

    Archives

    Categories

    • No categories

    Meta

    • Register
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org