Comments (4)
Je vais changer le code qui génère les images, en attendant il te suffit de supprimer cette condition :
https://github.com/Grafikart/WPHP-Framework/blob/master/theme.php#L167
from wphp-framework.
En effet ça merche, merci !!! \o/
Et est-il possible de générer à nouveau les images de ce format ?
from wphp-framework.
Auto-réponse : Le plugin Regenerate Thumbnails s'est révélé parfait pour ça.
from wphp-framework.
Bonsoir, j'ai le même problème de miniatures mais je ne parviens pas à la résoudre avec la méthode donnée par Grafikart, à moins que je m'y prenne mal. J'ai désactivé tout ça :
function images(){
foreach($this->options['images'] as $post_type=>$formats){
// if (
// (isset($_POST['action']) && $_POST['action'] == 'ajax_thumbnail_rebuild') ||
// (isset($_GET['page']) && $_GET['page'] == 'ajax-thumbnail-rebuild') ||
// (isset($_REQUEST['post_id']) && get_post_type($_REQUEST['post_id']) == $post_type) ||
// (isset($_REQUEST['action']) && $_REQUEST['action'] == 'delete')
// )
{
foreach($formats as $f){
if($f[0]=='thumb'){
set_post_thumbnail_size( $f[1], $f[2], $f[3] );
}else{
add_image_size($f[0], $f[1], $f[2], $f[3]);
}
}
}
}
}
C'est ce qu'il fallait faire ?
merci
from wphp-framework.
Related Issues (11)
- Shortcodes et le tableau $conf HOT 2
- Ajout de la checkbox pour le panneau d'option
- White page HOT 6
- Création automatique des tableaux, fichiers, etc... HOT 5
- Passer un résultat a wordpress
- Erreur WordPress 3 HOT 1
- Montrer les "catégories" des custom post (voire les filtrer)
- Code source des metas
- Soucis avec le framework en ligne HOT 1
- Ajouter une icone aux post types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wphp-framework.