Dani Llewellyn
Forum Replies Created
-
Forum: Plugins
In reply to: [A-Z Listing] Shortcode not works right since 1.6.0@schrotty, the escaping will be fixed in the next version.
Forum: Plugins
In reply to: [A-Z Listing] Posts from a category onlyI’m marking this as resolved, but please come back if you still need help.
Forum: Plugins
In reply to: [A-Z Listing] Filter posts via categories using shortcode (more than one)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 asWP_Queryaccepts: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', ), ), ) );Forum: Plugins
In reply to: [A-Z Listing] Display Posts Starting with Specific Letters onlyThis is not possible using the shortcode, and difficult or crazy to do with PHP.
If you know PHP and can understand the
WP_Querydocumentation then you can pass a WP_Query parameter array which limits to a single letter intothe_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.Forum: Plugins
In reply to: [A-Z Listing] No output from multiple terms in an array.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_Queryinjection points, as this plugin usesWP_Queryfor posts listings. For Taxonomy term listings we use the function from core calledget_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.
Forum: Plugins
In reply to: [A-Z Listing] Using with authorsI’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.
Forum: Plugins
In reply to: [A-Z Listing] how to display on top of pages?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. Thepost_typeitem needs to be at the same level as thetax_queryitem:<?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 ofthe_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' ), ), ) );Forum: Plugins
In reply to: [A-Z Listing] Broken design after upgradeHi,
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.
Forum: Plugins
In reply to: [A-Z Listing] Blank page for one type, working for anotherOK,
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.phpfrom 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
128Mand 10,000 posts without hitting the limit.Forum: Plugins
In reply to: [A-Z Listing] Design A-Z list.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 }- This reply was modified 8 years, 2 months ago by Dani Llewellyn.
Forum: Plugins
In reply to: [A-Z Listing] TRAFFIC THEFTIf you can, make a complete backup of your site in case the next steps go awry, and then:
- 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
- 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)
- 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
- 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 arequire()to load WordPress itself - 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
- Upload your new copies of all the plugins
- Upload your new copy of your theme with any customisations re-applied
- Upload your wp-content/uploads folder once you’ve removed the PHP files within – see above
- Upload your wp-config.php file once you’ve verified there are no backdoors inside
- 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
Forum: Reviews
In reply to: [A-Z Listing] Awesome PluginThank you, I’m glad it’s working well for you 🙂
Forum: Plugins
In reply to: [A-Z Listing] TRAFFIC THEFTDon’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 THEFTYou 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 THEFTThis 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.