Ashish Kumar (Ashfame)
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Featured Posts WidgetSELECT distinct(meta_key) from wp_postmeta;
change wp_ to whatever your database prefix is, defined in wp-config.php
wp_ is the default table prefix. Try running the query, first.
Forum: Fixing WordPress
In reply to: CLS issue with the_post_thumbnailUnless we have finalise reproduction instructions to produce this issue reliably, we can’t file a bug report as it’s probably the codebase of your install which overall emits this behaviour.
And to further diagnose this issue, sorry but the only option, I see, is to use a debugger to actually go through the functions to see what’s the data flowing through them and figure out where it might be going off the expected road.
Forum: Fixing WordPress
In reply to: Ctrl Z undoes everything and it’s impossible to redoOh, you are utilizing the WordPress editor buttons instead of shortcut keys (Ctrl/Cmd + Z/Y). I am not 100% sure they don’t have their own logic, but like I said, they work fine when its a matter of actions over text rather than just typed text. Sorry, the software doesn’t handle every bit of text handling well.
If you can provide exact instructions on how to reproduction this issue, with expected vs actual behavior, a ticket can be created for it, but that doesn’t necessarily mean it will be fixed right away, but tracked and hopefully some day fixed when somebody picks it up.
Forum: Fixing WordPress
In reply to: Problem with web site structureoh, I see. That shouldn’t be the case at all. It should be some cache on your end if you are still seeing the old url functional. Old url would either be 404 or in some cases redirect to the new url
Forum: Fixing WordPress
In reply to: Ctrl Z undoes everything and it’s impossible to redoHi @lucycorne
Undo behavior is controlled by browser, if I am not wrong and with text, software would obviously lack context of what steps are – is it with each word? each alphabet? each line? each paragraph?
You can however redo your undo, and it brings back if its accidental. But with pause in between, also a redo becomes part of your history from which it does undo. And things get out of hand.
You will perhaps find this plugin useful – https://www.ads-software.com/plugins/autosave-net/ but remember undo is mainly for reversing your actions, and text doesn’t fit very well into that criteria, so avoid it with text.
Forum: Fixing WordPress
In reply to: Problem with web site structureChild pages will have the parent slug in their own url. Why do you want to make them parent-child if you don’t want this url structure for them?
Forum: Fixing WordPress
In reply to: User-specific downloadable content on profile pageWhen you say “without utilizing plugins”, are you going to write custom code for it? Otherwise how do you hope to achieve this?
To save user’s data to their profile page, you will need to add fields on the profile page which will pull from usermeta table. So when saving, you would need to save them in the usermeta table. There are functions like https://developer.www.ads-software.com/reference/functions/update_user_meta/ to add/update/delete usermeta.
Forum: Fixing WordPress
In reply to: Can’t access sidebar widget to fix PHP error.Hi @dwiener
You can manually go to wp-contents/plugin folder and rename the plugin that offers you the ability to add PHP code as widgets. This will cause the plugin to be deactivated to get your site back.
Not sure whether the problem will be back as soon as you reactivate it or if you won’t be able to activate the plugin at all. So, you would have to check with docs of this plugin or reach out to their support.
Forum: Fixing WordPress
In reply to: media library not loading all images in gallery viewThis isn’t something that’s going to be fixed, but a change for now. And they let you retain the old behavior via a filter.
Forum: Fixing WordPress
In reply to: media library not loading all images in gallery viewHi @macpheek
If you would like to enable infinite scroll in the media library, you can add this code of snippet to your functions.php or in a separate plugin –
add_filter( 'media_library_infinite_scrolling', '__return_true' );
Forum: Localhost Installs
In reply to: should Google Analytics be added to localhost?Yes, you will have to do that if your workflow includes migrating dev install to production install like that.
You can alternatively also add the code with a condition like:
if (strpos($_SERVER['HTTP_HOST'], 'livesite.com') !== false) { ?> Google analytics code comes here <?php }
If you are in need of doing that for a bunch of things, then I personally do it via config file, as in I use a special version of wp-config.php and load credentials from another file which it loads, but on the basis of the filename, it knows whether its in production or staging or local environment.
Explained here – https://wordpress.stackexchange.com/questions/52682/best-practice-for-versioning-wp-config-php/53014#53014
Forum: Fixing WordPress
In reply to: CLS issue with the_post_thumbnailWoah, that’s a lot of image sizes.
I already see the image at 200×200, but it should be 300×300 because its defined that way. Huh.. I am not too sure why would that be happening.
But still 200×200 works for you, right?
Forum: Fixing WordPress
In reply to: Masonry layout NOT based in imagesI suggest you look it up, try the ones you find to see works for you best.
Forum: Fixing WordPress
In reply to: how to maintain custom post type data for 3 websites?You shouldn’t be using WP_Query in this case because you just need to pull some data out and use it. You don’t really need to set the context/state of the kind of request the install is running in, in this particular request.
So, just get the data out and use those variables to do whatever.
Also, I should mention that you can also use WordPress’s REST API to query data from each other install, but since you are probably querying custom data, it would also require you to expose that information on the API, which means extra work. Hence, I didn’t suggest that route.
Forum: Fixing WordPress
In reply to: Autoptimize help – ruined site elementsThat caching plugin couldn’t have caused the information to be removed from your website. That sounds like some other change affected that or something is very poorly coded in your theme.
You can install any such plugin for optimization, some will conflict with minify/concatenation functionality for JavaScript files, but that’s specific to your website’s JavaScript code.
Best advice would be remove the bloat. Code that you don’t use shouldn’t be there. I see your website loads ton of stuff and for what? What’s unaccounted for, because you installed a plugin?
Plugins do something for you, they can’t magically make your site fast. And it would be hard for you to understand and optimize every bit that’s wrong, if you are not a developer, but that’s more practical advice.
And plugins come in the last, which minify/concat your js/css files and cache html. I personally like w3 total cache plugin to cache html for me.
You can also optimize your images. This can be as easy as adding a plugin like this – https://www.ads-software.com/plugins/tiny-compress-images/ and let it optimize your media library images. Theme’s image assets (if any), will have to be handled separately.
I suggest you reading more on the topic & learning a bunch of these things to make better sense of things.