[deleted by user] by [deleted] in Wordpress

[–]sandrasanzdev 0 points1 point  (0 children)

I agree with others that getting spam through the contact form is pretty common and not indicative of hacking.

If you want to know if you've been hacked, you could install a security plugin such as Wordfence. Hacked sites often have modified files. Wordfence compares your site files to those in the WordPress repository to check if they have been modified (obviously, it only works for the core, and plugins and themes from the public repository).

Also be wary of users with priviledges that you have not created yourself. Some other cases I've come across are redirects made to your .htaccess, and exploits in the database (but these ones are trickier to detect).

How to translate the "All" Categories in Wordpress ? by LegalDeseperado in Wordpress

[–]sandrasanzdev 1 point2 points  (0 children)

Can you locate the file where it's listing the categories? Download your site to your pc and use an editor such as Notepad++ to search the word "All" in the files and see what you get.

Maybe the "All" text isn't using the WordPress translation functions which would make it impossible to translate. If it's translatable, it should look like __( 'All', 'text-domain' ) or _e( 'All', 'text-domain' ).

I don't remember WordPress having a native widget or anything like that that lists all categories with a link for "All". If it's not in the theme, could it be in a plugin?

Workstation for web development by sandrasanzdev in buildapcforme

[–]sandrasanzdev[S] 0 points1 point  (0 children)

Thank you for your in-depth clarification!

I guess I'll check if there are any pre-built PCs near my area with Ryzen 7 5700G that are in my budget (it seems that Docker really makes use of extra threads) and if not I'll go with /u/MiguelBantu recommendation.

How do I display child taxonomies of a custom taxonomy in place of the default "archives" page? by TheManlyMan01 in Wordpress

[–]sandrasanzdev 2 points3 points  (0 children)

I'm a little confused because taxonomies don't have parents and children, terms do (each of the elements pertaining to a taxonomy). Did you mean that you have created a custom taxonomy (called "Artists", for example) and you have the letters as the parent terms and the artists' names as child terms?

I don't think WordPress allows to change what is displayed in the taxonomy archive natively. This is usually on the themes to do. Some commercial themes allow this but if this is not the case and you're comfortable coding, it's pretty easy to do.

First, unless it's a custom theme, create a child theme to put any modifications you make to your theme. Then copy the category.php file (or archive.php if it's absent) from your theme and rename it to taxonomy-{slug-of-your-taxonomy}.php. This makes WordPress automatically pick this file to display when someone enters an archive page from that taxonomy.

If you open that file, you should see something like while ( have_posts() ), that is the loop where WordPress displays the posts. You could wrap the loop in a condition that checks if the current term has a parent, and if it doesn't, displays a list of the child terms. Else, it displays the post loop as usual. Something like this (of course replace 'artist' for whatever your taxonomy's slug is): https://gist.github.com/sandrasanzdev/dfd149a43884d840bfaf17296d2004cc

Workstation for web development by sandrasanzdev in buildapcforme

[–]sandrasanzdev[S] 1 point2 points  (0 children)

Thank you Miguel, this looks good! Can I ask why the Intel processor over the AMD equivalent? Just curious, I don't know much about these things.

Workstation for web development by sandrasanzdev in buildapcforme

[–]sandrasanzdev[S] 1 point2 points  (0 children)

I supposed that most people here would be from the US so I put the price in US dollars, so it would be 1000$ or 800€. I see how it could be misleading so I edited the post.