Dani Llewellyn
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Internet Explorer and WordPressIt is common for consumer-oriented projects to not include support for IE because of the gap in features when comparing to the evergreen browsers. Remember that IE11 has not seen many new features since its release in 2013! In the web world 7 years is an exceptionally long time. With that said, however, IE11 is still supported and used in corporate environments so projects that are destined for use in a company setting often stipulate that IE11 be supported by the development team of a site.
If you did not require IE11 support in your negotiations when specifying the site, then the developers are likely to have not considered it when developing. They are perfectly within their right to charge extra for out-of-specification changes.
Forum: Developing with WordPress
In reply to: Front-end JavaScipt and npm (ESNext+JSX)As far as I can tell, to achieve this you can either:
- add a new command to call webpack directly for your front-end scripts and use create-guten-block script for the editor code, or
- eject from create-guten-block to copy all the webpack configuration from cgb into your project and customise from there
For the first option, edit the
package.jsonfile to add your custom build script into thescriptsobject – you likely want to investigate how to configure webpack for your front-end code and call the build of that:{ ... "scripts": { "build": "cgb-scripts build && my-custom-builder" } }Forum: Plugins
In reply to: [A-Z Listing] Woocomerce AttributeHi,
Product Attributes are saved as a taxonomy, so you want to use something like this to show their names:
[a-z-listing display="terms" taxonomy="pa-designer"]Forum: Plugins
In reply to: [A-Z Listing] Styling issuesThe problem is your theme is applying styling that is overriding the plugin. You can fix it by navigating to admin -> appearance -> customize. From there find the “Custom CSS” feature and add the following CSS code which is specific to your site:
#left-area .page ul.az-links li { background: unset; padding: unset; }Forum: Plugins
In reply to: [A-Z Listing] Using shortcode does not workYour shortcode looks correct. If you have no articles in the benh category it might be displaying all posts as a fall-back. I’ve seen this before where when a term is empty it shows a list of all posts instead of none.
Forum: Plugins
In reply to: [A-Z Listing] Using shortcode does not workHi,
Is that a direct copy and paste? You have a space between
termsand the=after. It should beterms="benh"with no space.Forum: Plugins
In reply to: [A-Z Listing] Only show Categories starting with specific letterYou can link to a specific letter by appending
#letter-a,#letter-b,#letter-c, etc to the address of the page:https://example.com/a-z-listing#letter-a. Note that this is entirely handled in the browser – everything after a#in a web address is only ever seen by the browser, and never sent to the server. That means while it appears to be different pages it is actually all the same page with different bits hidden and shown on-demand.Forum: Plugins
In reply to: [A-Z Listing] Only show Categories starting with specific letterThe file is at
wp-content/plugins/a-z-listing/scripts/a-z-listing-tabs.js. The code I posted above should be sufficient to cause it to be loaded.Forum: Plugins
In reply to: [A-Z Listing] Only show Categories starting with specific letterHi,
My plugin doesn’t support this quite how you want it. I have supplied a small javascript file that, when loaded, will “hide” some of the list so that only a single letter is showing at a time. However, this is done entirely in the browser so you won’t have a separate page for each letter.
You can experiment with this to see if it suits you with the following code added to your theme’s
functions.phpfile:add_filter( 'a_z_listing_tabify', '__return_true' );The script uses jQuery-UI’s “tabs” functionality to implement the feature.
Forum: Plugins
In reply to: [A-Z Listing] Search funtionalityHi,
This is not natively supported by my plugin 🙁
Forum: Plugins
In reply to: [A-Z Listing] Only display pages that are children of specified parentHi,
Can you post the exact shortcode you added to your site using the forum’s
codebutton in the editor area? Without seeing the exact shortcode you used I can only guess, but it might be that you setparent-postto a post’s slug instead of it’s ID. Theparent-postparameter must be set to a post’s ID number.Forum: Plugins
In reply to: [A-Z Listing] A-Z directory not linking to anywhere on clickHi,
How is the slider added to the homepage? Are you using a specific plugin? Does the problem go away if you disable any caching layers applied to your site?
The a-z-listing plugin should be self-contained. I don’t see any reason for it to be interfering with another unrelated plugin, so this is very unexpected.
Forum: Plugins
In reply to: [A-Z Listing] listing by authorHi,
The plugin doesn’t do this natively. You can, however, hook into the filter
a_z_listing_queryusing PHP to modify the query by adding the required parameters. Something like below might work when added to your theme’sfunctions.phpfile:add_filter( 'a_z_listing_query', 'add_user_to_a_z_query' ); function add_user_to_a_z_query( $query ) { $query['author'] = 123; // Set to ID of a user // alternatively $query['author_name'] = 'Administrator'; // Set to a user's name // alternatively $query['author__in'] = array( 1, 2, 3, 4 ); // Set to multiple ID numbers of users return $query; }- This reply was modified 6 years ago by Dani Llewellyn. Reason: fix `author__in` array index
Forum: Plugins
In reply to: [A-Z Listing] Arrange A-Z by subtitleHi,
To achieve this you will need to be able to program in PHP. There is a “filter” that sets which letter an item is indexed against:
a_z_listing_item_index_letter. You will need to use$itemto fetch the sub title using the methods provided by Advanced Custom Fields and match the correct letter from there. I do not know how to do this, because I have never used Advanced Custom Fields 🙂Forum: Plugins
In reply to: [A-Z Listing] Using shortcode does not workDid you write it exactly like you have above with spaces between the
=and the words either-side? If so, try removing those spaces so that it looks like this:[a-z-listing display="posts" taxonomy="category" terms="benh"]Also make sure that the
benhterm exists as acategoryand that you have posts that you have assigned to that category.Note that the
categorytaxonomy is not by-default applied to posts of thepagepost-type, which is the default post-type that the plugin displays. To display posts from thepostpost-type (wow, many “post”!) you need to addpost-type="post":[a-z-listing display="posts" post-type="post" taxonomy="category" terms="benh"]- This reply was modified 6 years ago by Dani Llewellyn.