Forum Replies Created

Viewing 15 replies - 661 through 675 (of 927 total)
  • Plugin Author Dani Llewellyn

    (@diddledani)

    @schrotty, the escaping will be fixed in the next version.

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’m marking this as resolved, but please come back if you still need help.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi @morantivo,

    You cannot use multiple taxonomies with the short-code. This will require the PHP method in an appropriate template in your theme. You will want to use the_a_z_listing() function and a parameter array the same as WP_Query accepts:

    the_a_z_query( array(
        'post_type' => 'growing',
        'tax_query' => array(
            array(
                'taxonomy' => 'flower',
                'field' => 'slug',
                'terms' => 'yellow',
            ),
            array(
                'taxonomy' => 'season',
                'field' => 'slug',
                'terms' => 'autumn',
            ),
        ),
    ) );
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    This is not possible using the shortcode, and difficult or crazy to do with PHP.

    If you know PHP and can understand the WP_Query documentation then you can pass a WP_Query parameter array which limits to a single letter into the_a_z_listing() function in a template where you want the listing to appear. Though this would be just as easy to do with WP_Query itself so you would be creating extra work by trying to coerce my plugin to do it instead of writing it directly. Limiting the listing to a single letter will override virtually all of the functionality of my plugin.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Your PHP code looks correct. I’m not sure what would be going wrong with it.

    It is possible to modify the SQL for a posts listing by hooking the available WP_Query injection points, as this plugin uses WP_Query for posts listings. For Taxonomy term listings we use the function from core called get_terms() so if there are any SQL hooks in that then you can inject there, but I don’t know about them.

    If the page is blank, or half-completed then there is likely a fatal error somewhere. Your server logs should reveal a message of what and where the error is.

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’ve been musing on this.. it looks like your post-type isn’t public, in which case the plugin cannot show the content. If the posts really are public then I surmise that the permalink hasn’t been registered by whoever created the post-type.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Do you want the full listing in the header of every page or just the letters? If you want the letters only then you could either use the Widget in an appropriate sidebar, or you can use the_a_z_letters() function.

    Your query in the example you posted which isn’t working is not a valid WP_Query. The post_type item needs to be at the same level as the tax_query item:

    <?php
    the_a_z_listing( array(
        'post_type' => 'post',
        'tax_query' => array(
            'taxonomy' => 'category',
            'terms'    => array( 'my-boat' ),
        ),
    ) );
    

    This function as above will show the complete listing, which might be correct, or you might want the letters only in which case replace it with a call to the_a_z_letters() instead of the_a_z_listing(). Both functions use the same argument, so the array can remain the same:

    <?php
    the_a_z_letters( array(
        'post_type' => 'post',
        'tax_query' => array(
            'taxonomy' => 'category',
            'terms'    => array( 'my-boat' ),
        ),
    ) );
    
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    I can’t replicate this issue locally. I see you’re using the multi-column example template. If you have modified it then potentially your modifications are conflicting, but it doesn’t look like that is the case.

    The best thing to do is to copy the multi-column template from the plugin again like you did before; I have possibly broken older versions of the template with more-recent style changes so copying the template will allow us to narrow down the problem location.

    Plugin Author Dani Llewellyn

    (@diddledani)

    OK,

    Sorry about the long delay in replying. I’ve put together an updated version, which might solve this problem for you. It is available at https://github.com/diddledan/wp-a-z-listing/archive/2.0.zip as a pre-release, and includes some caching strategies. When the cache is cold, though, it will still take a lot of memory and time to build the page.

    It looks from your error above that the memory exhaustion occurred in meta.php from WordPress core. That would indicate that perhaps the problem is related to a large amount of metadata on your posts. It would be interesting to see if you could isolate whether the plugin fails on your posts in isolation or whether it is a combination of plugins which is causing the issues.

    For reference, I’ve just tested the 2.0 preview on a local system with a memory limit of 128M and 10,000 posts without hitting the limit.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    1. To add extra spacing between the first letter and the “letters bar” you will need to add some extra CSS styling. You can use the theme “customizer” to add extra CSS code (admin->themes->customize->additional css). The following code will add a 16 pixel gap:

    #az-slider {
        margin-top: 16px;
    }

    2. Each letter can be separated from the next by, again, adding custom CSS:

    .letter-section {
        border-bottom: 2px solid black;
    }

    You can adjust the distances between the letter section, the bar, and the following letter section with:

    .letter-section {
        padding-bottom: 16px; // gap between upper section and bar
        border-bottom: 2px solid black; // the bar
        margin-bottom: 16px; // gap between bar and lower section
    }
    Forum: Plugins
    In reply to: [A-Z Listing] TRAFFIC THEFT
    Plugin Author Dani Llewellyn

    (@diddledani)

    If you can, make a complete backup of your site in case the next steps go awry, and then:

    1. Download the wp-content/uploads folder to your local PC – check there are no PHP scripts inside that folder once you have it. If there are any PHP files delete them unless you specifically know about them and why they’re there
    2. Make a list of all the plugins you have on your site and download them from their original sources (updating if you can to the latest versions released)
    3. If your theme is not customised or home-made try to download the latest version from the original source – If you’ve customised it then make sure you can duplicate the customisations in the newly downloaded theme
    4. Save wp-config.php to your home PC and check to make sure there are no nasty injected things inside it – compare with a clean version and try to make a judgement as to whether the differences are each required for your site – this file tells WordPress how to connect to your database and some other configurations via define() calls and ends in a require() to load WordPress itself
    5. Now delete all the files on your site (this is the scary part) and upload a new WordPress extracted from the zip file you can download from WordPress.org
    6. Upload your new copies of all the plugins
    7. Upload your new copy of your theme with any customisations re-applied
    8. Upload your wp-content/uploads folder once you’ve removed the PHP files within – see above
    9. Upload your wp-config.php file once you’ve verified there are no backdoors inside
    10. If all went well your site should be operational again. If not, delete all the files and restore from the backup you made before you started these steps and you’ll be where you started – see the very first statement 🙂 – The database should still be OK so you don’t necessarily need to restore that too
    Plugin Author Dani Llewellyn

    (@diddledani)

    Thank you, I’m glad it’s working well for you 🙂

    Forum: Plugins
    In reply to: [A-Z Listing] TRAFFIC THEFT
    Plugin Author Dani Llewellyn

    (@diddledani)

    Don’t worry about it. Mistakes happen. I’m glad that my plugin hadn’t caused your site to be hacked. I was concerned that I had a vulnerability which you were highlighting. If that were the case I would work tirelessly to fix for everyone. I hope you can get your site cleaned up, and that it isn’t too painful a process. Fixing a hacked site is a painful task and I don’t wish the job on anyone. Good luck.

    If there’s ever anything I can help with in the future, please come back and ask away 🙂

    Forum: Plugins
    In reply to: [A-Z Listing] TRAFFIC THEFT
    Plugin Author Dani Llewellyn

    (@diddledani)

    You can find help for a hacked site at https://codex.wordpress.org/FAQ_My_site_was_hacked

    Forum: Plugins
    In reply to: [A-Z Listing] TRAFFIC THEFT
    Plugin Author Dani Llewellyn

    (@diddledani)

    This is not due to my plugin. The forum moderators and the plugins team have both confirmed that this is not caused by the A-Z Listing plugin. It is likely that your site has been hacked via another route.

Viewing 15 replies - 661 through 675 (of 927 total)