WordPress.org

Ready to get started?Download WordPress

Forums

Threads
Reverse order / background / divider (8 posts)

  1. Denis Ciumbargi
    Member
    Posted 1 year ago #

    Hi,

    Wondering if the items can be somehow orrdered from new to older?

    On my test site they are displayed from oldest to new.

    Also, the background is gray(did not changed it, the plugin just put it like that) and, in this case the divider should be transparent not on white background...This happens on the page i created and inserted the shortcode.

    http://sansapentrusansa.org/proiecte/citatulsaptamanii/#.UUZTCRzQDSj

    http://wordpress.org/extend/plugins/threads/

  2. SAFFLEUR
    Member
    Posted 1 year ago #

    I believe if you modify this in threads.php

    if ($term) {
    		$query = new WP_Query(array(
    			'posts_per_page' => -1,
    			'taxonomy' => 'threads',
    			'term' => $term->slug,
    			'order' => 'ASC',
    		));
    		return $query->posts;

    to change ASC to DESC that should work.

    So it should be;

    if ($term) {
    		$query = new WP_Query(array(
    			'posts_per_page' => -1,
    			'taxonomy' => 'threads',
    			'term' => $term->slug,
    			'order' => 'DESC',
    		));
    		return $query->posts;
  3. Alex King
    Member
    Plugin Author

    Posted 1 year ago #

    All of the image URLs are filtered, and the CSS has an override filter - you have full control to swap out images or change the CSS as desired using the WordPress plugin API:

    http://codex.wordpress.org/Plugin_API

  4. Denis Ciumbargi
    Member
    Posted 1 year ago #

    @SAFFLEUR - Thank you!

    I will use that, just wanted to see if an option is available in a setting or something not to alter the php and loose customization on updates.

    @Alex King - some users use plugins because they are not learning css, filters and API.

    I was expecting more like "we will see about that in the development of the plugin" or "we will change some css to fit any colors in the future" not something that sounds like "whatever do what you want if you know how to do it".

    Unprofessional.

    Plus, if you check the link you will see that the shortcode creates so bigger spaces between items compared with original thread file and cannot be use at the end of an article or something as it will take so much space and does not look good.

    Maybe some "we will learn from the user reports"?

  5. maiki
    Member
    Posted 1 year ago #

    Alex, don't mind Denis. You made it clear in your post about the support this would get, and your answer was empowering. One hopes that an open project will get folks involved that want to add features, so here's to more folks discussing features they would like, and less calling you unprofessional. ^_^

  6. Alex King
    Member
    Plugin Author

    Posted 1 year ago #

    Changing ASC to DESC in the query is not sufficient - you'll also have to rewrite the display logic to calculate the offsets in the opposite order.

  7. boborg
    Member
    Posted 1 year ago #

    If anybody has code changes needed for new to old sorting please share. Any chance you might make it an option in a future version of threads Alex?

  8. Denis Ciumbargi
    Member
    Posted 1 year ago #

    @boborg - As you can see they do not take improvment requests so good luck :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic