pierremg
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Where does Polylang store the language code for each post?Hi. Thanks for your answer, but I don’t want to change the language, I want some posts to have no languages at all. Changing languages is easy, but removing them seems impossible unless you delete it.
Forum: Plugins
In reply to: [Polylang] Where does Polylang store the language code for each post?Deleting the language has caused me a lot of trouble, and I’m still fixing them. That’s why I need a better solution for the future.
Forum: Plugins
In reply to: [Autoptimize] Can’t get Autoptimize to work the same way on all pages@optimizingmatters The critical css field is blank. I don’t intend to use it. I’ll install “Per Page Add to Head” to handle the critical css individually for each page.
“all your pages look identical”, this isn’t a WP recommendation as far as I know. I’m using templates to give different looks to home, post, blog, etc., but all pages use bootstrap.css and style.css.
Forum: Fixing WordPress
In reply to: Page not found in the admin area although the page is there@tnash root directory. I can access everything in the admin area, except for these two plugins that instead of saving changes I made it redirects to the page not found.
Something that is worth mentioning: when I put a little piece of code in the critical css section of the Above the Fold plugin, it saves normally. But when I paste the full critical css of my site (a lot of code), it doesn’t save and redirects to the page not found. Something wrong with the database?
Forum: Developing with WordPress
In reply to: How to get the alt text of an imageThanks @jakept. This is how I got it working:
<?php $thumb_id = get_post_thumbnail_id(get_the_ID()); $alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true); if(count($alt)) echo $alt; ?>
<img title="" alt="<?php echo $alt; ?>" class="wp-post-image" src="<?=wp_get_attachment_url( get_post_thumbnail_id() ); ?>" style="width:100%; height:auto;">
Forum: Developing with WordPress
In reply to: How to get the alt text of an imageI can’t use the_post_thumbnail() because this function also automatically adds “width” and “height” to the img tag and that’s what I’m trying to avoid.
Forum: Developing with WordPress
In reply to: How to get the alt text of an imageNot at all, it’s not even to what I need. I know what alt and title are, and I always set those attributes when I upload an image. What I’m trying to achieve is to “extract” the alt attribute from the WP database. For example, I need something like this:
<img title="" alt="<?php any_function_that_can_help_me() ?>" >
but thanks anyway
Forum: Fixing WordPress
In reply to: Any pluging that will let me to use any site structure on WordPress?Forum: Plugins
In reply to: [Shashin] Why doesn't lightbox work?Thanks for answering me Mike. I’m using this lightbox 2 plugin www.ads-software.com/plugins/wp-jquery-lightbox/
Forum: Plugins
In reply to: [PHPLeague] Translations dont workI found out what the problem was. It was necessery to generate a .MO file using Poedit.