Forum Replies Created

Viewing 15 replies - 91 through 105 (of 927 total)
  • Forum: Plugins
    In reply to: [A-Z Listing] a-z list
    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    Have you inserted a shortcode to trigger the plugin to display anywhere? This is a requirement – it should be inserted into a post’s editor screen (if you’re using the block editor then there is a “shortcode block” for this) or into a site builder using a shortcode facility if they provide one. It should look similar to this:

    [a-z-listing display="posts" post-type="page"]
    

    There are many configurable options that you may specify on the shortcode. If you explain the requirements for your listing I can attempt to craft the appropriate shortcode for you.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    This is an incompatibility with the styles provided by your theme. You should be able to fix it by going to wp-admin and navigating to appearance -> customize. The page will reload to the theme customizer where you then need to find the “Additional CSS” option. Paste the following into the Additional CSS box and click save (do not remove any code already in the box, but add this at the end):

    .letter-section ul.columns {
        float: initial;
    }
    Plugin Author Dani Llewellyn

    (@diddledani)

    I’ve just had a poke through your site to see if I can see what’s up – it looks like you do not have a category called “courses” but you do have a page called “courses” that looks to be a common parent to all your courses. If you want to show all children of the courses “page” then this will do what you need:

    [a-z-listing display="posts" post-type="page" parent-post="601"]
    

    Note that the number 601 is the post-ID of your “Courses” page – this is specific to your site, and will need to be updated if you want to use a different page for the parent.

    Plugin Author Dani Llewellyn

    (@diddledani)

    @cherrydrop please don’t hijack other people’s threads. Please post your question as a new thread per the WordPress.org forum guidelines.

    @inkoutsrl I see you’ve also contacted me through my website, so I’ll continue helping you there. (Remember, do not share login details with support representatives of any plugin or theme, myself included. This is for your protection.)

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    From what you describe, it sounds like this plugin is not suitable. You might find another plugin works better for your needs.

    For reference, this plugin can only show posts or terms in alphabetical format. It cannot show arbitrary data other than posts or terms.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    To show pages that have been assigned the category of “courses” you want the following:

    [a-z-listing display="posts" post-type="page" taxonomy="category" terms="courses"]
    
    Forum: Networking WordPress
    In reply to: WordPress IP
    Dani Llewellyn

    (@diddledani)

    The current IP address of WordPress.org is 198.143.164.252, but this may change arbitrarily. Ideally you would be able to use a hostname but I appreciate that this is often not possible. You could set a cron job to regularly update the IP address in your firewall rules if it does change.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    If you are ok with working with PHP code, then you can use the a_z_listing_item_index_letter to replace the detected index letter for your posts by skipping over The and fetching the next letter afterwards. I am planning on eventually packaging up a solution for this issue, but I need to write the code first 🙂

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    My plugin shouldn’t affect the compression or caching in any way. I suspect this is something different that is interacting with the super cache plugin.

    How have you configured your A-Z page?
    Are you using the shortcode via the Shortcode block in the block editor, or have you inserted it into the post content as normal text, or are you adding the listing some other way?
    Can you edit your post and put the address of your A-Z page in the “Link to the page you need help with” field, please? (note that this address won’t be visible to search engines)

    Plugin Author Dani Llewellyn

    (@diddledani)

    Hi,

    I’m sorry you’re having trouble using the plugin and found the documentation difficult to understand.

    With regards to the names “taxonomy” and “term”, these are the names that WordPress uses in its own documentation. If I were to replace these with “category” and “tag” then it would be confusing when a Site Owner has Custom Taxonomies installed, which are equally-well supported along with “categories” and “tags”.

    To help you get running, please post a new thread to the support forum with your problems and what you want the plugin to show where I am happy to assist.

    Plugin Author Dani Llewellyn

    (@diddledani)

    Yes, you can do this. The default template at plugins/a-z-listing/templates/a-z-listing.php must be copied to your theme alongside style.css with the name a-z-listing.php. From there you can edit it to suit. To access custom fields I suspect you’ll need to add $post = $a_z_query->get_the_item_object( 'I understand the issues!' );. The parameter I understand the issues! indicates to the plugin that you appreciate that larger listings might be slow or cause PHP to hit the memory limit defined on your server while using this feature. This is because it loads more information from the database than it normally does to support accessing the full post including custom fields.

    I’ve shown below with context to indicate where it should go:

    <ul class="columns <?php echo $a_z_listing_column_class; ?>">
    	<?php
    	while ( $a_z_query->have_items() ) :
    		$a_z_query->the_item();
    		$post = $a_z_query->get_the_item_object( 'I understand the issues!' );
    		?>
    		<li>
    			<a href="<?php $a_z_query->the_permalink(); ?>">
    				<?php $a_z_query->the_title(); ?>
    			</a>
    		</li>
    	<?php endwhile; ?>
    </ul>
    Plugin Author Dani Llewellyn

    (@diddledani)

    The documentation for pre_get_posts has a bit of extra conditional logic which might be worth including at https://developer.wordpress.org/reference/hooks/pre_get_posts/

    add_action( 'pre_get_posts', 'your_override_wrapper_function', 99 );
    function your_override_wrapper_function( $query ) {
        if ( is_admin() || ! $query->is_main_query() || ! is_category( '20' ) ) { // ID is numeric, slug is a string.
            return; // we don't want to run for anything except the page we're interested in.
        }
        a_z_listing_force_enable_styles(); // this is the page we want, so run the function to enqueue the styles.
    }
    Plugin Author Dani Llewellyn

    (@diddledani)

    Perhaps init is too early. Can you try replacing the add_action call with this?:

    add_action( 'pre_get_posts', 'your_override_wrapper_function', 99 );
    

    If that works then I’ll update the documentation to reflect it.

    Plugin Author Dani Llewellyn

    (@diddledani)

    If you are showing the listing on the archive page for all “categories”, e.g. https://example.com/categories/, then I think you want to use is_category(), with no parameters. If you are showing it on a single category’s archive page, e.g. https://example.com/categories/category-name, then you need to supply the category as the parameter to is_category().

    Plugin Author Dani Llewellyn

    (@diddledani)

    I’m not very familiar with the Greek alphabet. Is this better?

    [a-z-listing alphabet="Αα,Ββ,Γγ,Δδ,Εε,Ζζ,Ηη,Θθ,Ιιίϊ,Κκ,Λλ,Μμ,Νν,Ξξ,Οο,Ππ,Ρρ,Σσς,Ττ,Υυ,Φφ,Χχ,Ψψ,Ωω"]
    
Viewing 15 replies - 91 through 105 (of 927 total)