You need to add an author parameter to the query that is creating $cust_loop
. You didn’t post that part of your code but something like:
$cust_loop = new WP_Query( 'author=123' );
Or:
$cust_loop = new WP_Query( 'author_name=rami' );
Note: Both of those taken (almost) straight from the Codex paged for WP_Query.
Related Posts:
- Give Editor Access To Sidebar
- How do I remove dashboard access from specific user roles?
- Prevent author from changing their posts if admin has modified
- Make A WordPress Page Accessible To Admins Only, Redirect Other User Roles
- How to remove administrator role in settings -> general -> New User Default Role?
- Create un-removeable user
- Custom CSS In Admin Only For Certain Roles
- Remove ability to access certain admin menus
- Remove admin AND editor from the “change role to” menu in user listing
- How to remove “Super Admin” from All Users for those that are not a “Super Admin”?
- Customize the upload screen
- Blocking Administrative Access to Authors and Subcribers?
- Customize Admin Users Screen based on Role
- Make certain pages uneditable by editors?
- Text snippets shared across posts
- Restrict dashboard access for specific user roles to specific actions
- How can I restore admin capabilities?
- What determines whether admin toolbar is shown to a logged-in user?
- How do you set up a WordPress blog with multiple authors to allow something like StackExchange’s “community wiki” feature?
- Admin option sidebar count
- WordPress Remove Submenus
- Only Admin can Edit, Delete or Update
- add_cap for editor but no admin role
- Shared account / dual blogging in WordPress
- Bind custom role to admin page
- remove menus for a specific role?
- current_user_can(‘administrator’) not working in custom login
- Show global Message in User Profiles with admin only Input field in WordPress Backend
- How to make sure your admin doesn’t hi-jack you site?
- Redirect admin 403 “Cheatin uh?” admin pages
- Given multiple admin accounts, how can I make it so that only admin with X username can edit posts
- How should I setup the “Users” area to hand over to a client?
- solution to prevent specific admins from altering site contents
- Admin user roles/permissions
- Passing state from child component to parent component in a Gutenberg Sidebar
- Redirect non-admin after login, and in url – /admin
- Hide top admin panel for non admin and non editors
- How can I create multiple different admin roles with their own capabilities
- Different role for free and pro users in wordpress without using bbpress
- Shortcut to widget/sidebar editing on the admin menu?
- Different customer login form than administrator login form?
- Where in WP can I check history or log of updates of plugins etc?
- How does admin-ajax.php work?
- Hide other users’ posts in admin panel
- Can an admin check passwords of registered users?
- Showing WP_Error message with admin_notice action hook
- Can I set a default dashboard layout for all users?
- How to print the output of the get_num_queries function from frontend to backend?
- Javascript not working in admin
- Setting Login with User Name and Password default option for Jetpack Admin Login
- add_submenu_page set for multiple roles [duplicate]
- Adminstering Large Number of WordPress Sites
- Admin: global $post empty
- Change home-url in dashboard
- How to restrict the editors from viewing/editing pages created by admin?
- Admin multiple column sorting
- How do I add a contact form?
- Unable to login, old site with previous developer gone
- How to default display name to first name and last and disable the profile field
- Adding html format on tinymce visual editor
- How can I show the contents of only a few users
- WordPress ACL (folder + permissions)
- Locked out of admin and some pictures don’t show after failed SSL installation
- How-to turn off mobile admin mode?
- How can I make the user names of commentors clickable links to the user’s profile from the admin comment screen?
- Grabbing the first image attached to a post and use it with the admin columns
- Keep Logged in Users out of Admin Panel
- Is there a wp-config.php option or constant that I can set to allow me to download nightly / beta builds?
- I can’t access the login panel on my offline website
- Output the admin menu_position for each item
- Admin login not working
- WordPress custom admin functions security
- Live reload preview just reloads forever
- Hide admin notice when user profile updated
- WordPress multisite, allow non super admins to create sites
- Black admin bar is being hidden by page elements
- admin edit link from a specific page
- Set Link Target Checkbox chcked on Edit Image MOdal Window in Admin Post Edit Screen?
- Help! I changed the domain and now I can’t log in via admin online
- Remove specific administrator’s capability
- Username was changed to “admin”
- Call require_once form admin page with checkbox
- How To Remove Import/Export Option From Tools?
- Unable to access admin web page
- Error “Sorry, you are not allowed to access this page”
- Create WordPress Menu Item Without Linking to a Custom Page
- Search Only Works when Logged into Admin
- exclude ID on avatar
- Missing content on website. Admins cant sign in
- Is Post-Form Resubmission somehow prevented in WordPress 4.2.2?
- Include administrator in author list
- WordPress login not working
- Enqueue script throws error in console
- Link to all posts page?
- Calculate and save an average in a meta
- If the only thing I use MySQL for is WordPress, do I need MySQL’s timezone tables?
- My Account Lost Administrator permission
- 2FA for admin login only, is it doable?
- Add a user to edit the layout of a site
- Display notice in block editor after wp_insert_post_data hook