Forum Replies Created

Viewing 15 replies - 16 through 30 (of 393 total)
  • It doesn’t stay sorted since that’s not the default behavior for posts. Posts are meant to be chronologically sorted since its a “blog”. Curious as to why you need them alphabetically sorted? Since that’s more suitable for pages, and that’s how pages are sorted by default. Perhaps the content you have in posts are more suitable as pages?

    You would also notice that when you sort them by clicking on “Title” in header, the URL in address bar of the browser changes. If you bookmark that URL, then you can always have it sorted by default? Probably no good.

    If you still want it otherwise, I found this piece of code that claims to do it.

    Please ensure you are loading scripts using wp_enqueue_scripts hook – see examples on this page

    When calling register_post_meta, there is also another property you have to specify auth_callback which will resolve this for you.

    See https://developer.www.ads-software.com/reference/functions/register_post_meta/

    Example:

    $meta_args = array(
      'type'     => 'string',
      'single'   => true,
      'show_in_rest' => true,
      'auth_callback' => function() {
        // Allow authenticated users to edit the custom field
        return current_user_can( 'edit_posts' );
      },
    );
    register_post_meta( 'cyc_exhibitor', '_cyc_exhibitor_first_name', $meta_args );

    Unless someone familiar with Elementor sees this question, you will probably have better luck with their dedicated support channel.

    There must be an option somewhere in Elementor to change that color. Suggest you check out their user guide.

    Sounds like you want to insert a block programmatically in all of your posts?

    The block are only parts of the interface. Its all stored as HTML when saved and parsed out back to blocks when retrieved to show in the UI.

    Example:

    <!-- wp:paragraph {"dropCap":true,"style":{"elements":{"link":{"color":{"text":"var:preset|color|orange"}}},"typography":{"lineHeight":"1.8"}},"backgroundColor":"gray","textColor":"blue","fontSize":"small"} -->
    
    <p class="has-drop-cap has-blue-color has-gray-background-color has-text-color has-background has-link-color has-small-font-size" style="line-height:1.8">Here is some text.</p>
    
    <!-- /wp:paragraph -->

    So, either you can programmatically insert the right html for the block you want & save the post. This would have to be done by looping over all the posts that you want to modify and change post_content on them before saving the post again. Look into get_post() for that.

    OR you can use the_content filter to just inject some HTML in between. You would need some checks like is_post() to limit where you filter does the change. Example:

    function custom_content_filter( $content ) {
      // Check if we're on a single post
      if ( is_singular( 'post' ) ) {
        return $modified_content;
      }
    
      // Default content for other contexts
      return $content;
    }
    add_filter( 'the_content', 'custom_content_filter' );
    

    That’s the default behavior. Count of parent category or taxonomy would only reflect the posts that you directly linked to that category or taxonomy. When assigning categories, you can see that you can actually select both (parent and actual category) but whether to do that or not, depends on how you want their individual pages to look on frontend site.

    That is very unusual. Some plugin or some code in your theme or even some malware can be responsible for this. Since there is no actually utility of such a thing, I suspect the site could have been infected.

    You can try to disable a plugin that you may suspect can be doing it.

    Otherwise, carefully follow this guide. When you’re done, you may want to implement some (if not all) of the recommended security measures and start backing up your site.

    Hi, Is this the default style offered by the theme you are using? Or you ended up configuring it that way and not sure how to revert or change it?

    Either way it would be helpful to know the website URL so that I can check and provide pointers.

    Forum: Fixing WordPress
    In reply to: Restricted Access

    It can also be a WordPress plugin you configured, in which you would have to deactivate the plugin. You can do so by renaming the plugin folder (once identified) under wp-content/plugins, in a file manager in your hosting panel.

    Forum: Fixing WordPress
    In reply to: Restricted Access

    Seems like there is another layer of protection on top of your WordPress install, either by your web-hosting company or whatever service that sits in front of your website before traffic is routed to it.

    Its probably configured to not allow access to everyone and limit access by either IP address or some other criteria.

    Suggest you check out any such protection that was configured under your hosting panel or reach out to your web-hosting company.

    Hi, I recommend reaching out to authors of the plugin you use for social media posting, they would be the best people to help you on this issue.

    When I created 10K+ users in a test install (WP 6.2.2), the author dropdown didn’t hide itself from the “edit post/page” screen. Something else is hiding that dropdown for you.

    • Can you try logging in with a different user?
    • Can you try logging in a private window (Firefox) or incognito window (Chrome) to test if any browser extension is causing that dropdown to be hidden?
    • Can you go to “Tools” > “Site Health”. Click on “Info” tab on top and click “Copy site info to clipboard” to copy site info and paste it in your response here.

    Password hashes are to be treated as sensitive. Since you have exposed them to the world in that screenshot, I advise you to rotate/change passwords of all those users, soon or once you get access to your admin panel.

    WordPress doesn’t use MD5 as its password hashing algorithm anymore. And I am not aware of how even that has changed over the years. You are better off by resetting the password from https://yoursite.com/wp-login.php?action=lostpassword

    You are doing great! You provided both the things I asked for.

    Are you using “kingcace” account to login when you can’t access the admin panel? Do you have the same issue when you login with “administrator” account?

    In your first screenshot, you can see meta_value column for your “kingcace” user is slightly different from “administrator” user. Different double quotes are in use. That could be the issue that you are not being interpreted as an admin user and something then redirects you away from admin panel because of that.

    The following query should fix that (but please make sure you have a database backup before you attempt to do this):

    update wp_usermeta set meta_value = 'a:1:{s:13:"administrator";b:1;}' where meta_key = 'wp_capabilities' AND user_id = 420;
Viewing 15 replies - 16 through 30 (of 393 total)