helgatheviking / simple-user-listing Goto Github PK
View Code? Open in Web Editor NEWA shortcode for displaying lists of users in a simple, easy-to-customize (uses template parts) fashion
A shortcode for displaying lists of users in a simple, easy-to-customize (uses template parts) fashion
I have custom template to display all the users on my WordPress site. I'm using the following function in my template to display all the Authors.
<?php echo do_shortcode("[userlist]"); ?>
This works perfectly, but I would like to display all the Authors without navigating to a second page. I currently have my Reading Settings set to 10 post per page and I have 17 users. I have copied the content-author.php
, navigation-author.php
and search-author.php
to my theme. What is the best way to override the wp_pagenavi
to display all my users?
Is it possible to add other filters to the search and not only the username?
Ex: if you are on /directory/page/2
and you run a search, you should be sent back to /directory
. The easiest way to do this is to make the form action
equal to the permalink. This is what is used to be, but it was removed (I think to support custom $_GET
params and maybe use as a widget). How to achieve this without changing the action?
Would want to redirect to page 1 when form is submitted, but not in cases where search results may legit span multiple pages.
Form $_POST
? pre_get_posts
?
Sadly, this did not work:
function search_filter( $query ) {
if ( isset( $_POST['as'] ) ) {
$query->set( 'paged', 0 );
}
}
add_action( 'pre_get_posts', 'search_filter' );
Not sure when this occurred; but the functions.php code (listed in the FAQ tab) for removing the Search Input no longer works.
I use the Code Snippets plugin for all functions.php changes.
Could you please update this code?
Thank you very much!
I need to list all admin approved users. don't show admin declined users....
In content-author.php,
<?php printf( __( '%s posts', 'simple-user-listing'), count_user_posts( $user->ID ) ); ?>
fix so it doesn't read "1 posts."
In content-author.php, the description says "The Template for displaying No Results."
I imported the Templates directory to my theme, and when I ran Theme Check it said that there were was a problem with arrows in navigation-author.php. Somehow they got de-encoded and show up as โ instead of โ
is this possible for v2?
Example:
https://github.com/Emilia-Capital/fewer-tags/blob/main/.wordpress-org/blueprints/blueprint.json
We'd probably want to add a bunch of random users and show them in the shortcode (cough block someday)
Hi Kathy,
I'm writing this regarding to the forum topic http://wordpress.org/support/topic/about-search-function?replies=2#post-5026619 .
Since, you couldn't regenerate the issue, I re-installed a fresh copy of the WP 3.8 and your plugin. Finally, I found the reason behind of this issue. This issue is generated with the s2member plugin. Since, I'm testing with a localhost project;I hosted a sample application in a free hosting account for your reference. It will be automatically expired after next 2 weeks.
http://simplelisting.cuccfree.org/
Username: admin
Password:simple123
You can generate this issue as this way,
But it is wrong. Because Antawn Jamison is not an author, he is a subscriber http://simplelisting.cuccfree.org/subscribers/ .
This is happening only with the search function; not with the page loading time.
When you deactivate the s2member plugin; search function is working without any issue.
But I need to use s2member plugin and your plugin both. If you can do something for this, it will be a great help to me.
Thanks,
Chathuranga.
Not entirely sure what specifically, but SUL has a vulnerability of some sort:
Current Design: https://www.figma.com/file/H5U237OsRZ5XPY4LBxSiO6/SUL-block?node-id=0%3A1
I've definitely seen some blocks that use the pattern you've got going on in the design, where almost all of the work happens in the main editor screen in a sort of "edit" mode. However, given the type of parameters the User Query
has, I think there's a strong argument here to put all the major settings in the Inspector and have the editor simply be the Live Preview of the shortcode.
I also think that there should probably be a separate block for multisite and single installation to start with, just to lower the complexity of the blocks and what they are trying to achieve.
Does the Figma file represent the initial settings you'd like the block to have @helgatheviking?
I'm interpreting these settings as follows:
So I guess we're doing this... Eventually.
Images from local source are linked als
< img src="http:/fqd.name/wp-content/plugins/user-avatar/user-avatar-pic.php?src=http://fqd.name/wp-content/uploads/avatars/3/picture.jpg&w=90&id=3&random=1406624605" alt="" class="avatar avatar-90 photo user-3-avatar" width="90" height="90" >
using the http-request within the ?src-Parameter fails when using security tools like iThemes Security which allows to rewrite such requests for security-reasons (Cross-Site-Scripting-Attack).
Better would be to use relative paths like
< img src="http:/fqd.name/wp-content/plugins/user-avatar/user-avatar-pic.php?src=/wp-content/uploads/avatars/3/picture.jpg&w=90&id=3&random=1406624605" alt="" class="avatar avatar-90 photo user-3-avatar" width="90" height="90" >
need that pizza money yo
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.