Jack Johansson
Forum Replies Created
-
Forum: Plugins
In reply to: [YUZO] Great plugin, but lacks a necessary optionHello,
Yes, for example consider this in a
content.php
or a loop:<?php yuzo_manual_feed($post->ID); ?>
This function would return an array of IDs of related posts, instead of outputting an HTML. Like the following:
Array(45, 133, 202, 281, 507)
This way, we can run a
foreach
and use the IDs in our own desired HTML structure.It would be easy to implement this feature, but since the plugin changes with every patch, i might need to update my code each time, not to mention it might cause fatal php error before updating. But if you can add it, you can update it too with each patch.
I can even write the function for you, in case you don’t have the time for it, if you are willing to add this feature.
Regards,
Jack- This reply was modified 7 years, 8 months ago by Jack Johansson.
- This reply was modified 7 years, 8 months ago by Jack Johansson.
- This reply was modified 7 years, 8 months ago by Jack Johansson.
Forum: Plugins
In reply to: [WP-PostRatings] can’t get only the rating valueThat is the annoying part actually. There is absolutely no error/warning in the console/debug. As if the code is not there at all. I scratched my head over and over and no results.
Thanks for the reply, it’s working now though. But sometimes it’s not in the mood to work ??
Forum: Plugins
In reply to: [WP-PostRatings] can’t get only the rating valueI got it using
get_post_meta($post_id, 'ratings_average', true );
, however i would like to avoid using this directly.By the way this plugin randomly stops and starts working, same site, same post, sometimes works, and some other time not (just loads the stars and then nothing)
Forum: Plugins
In reply to: [YUZO] Latest wp version supportHi,
What version of yuzo are you using? Mine works fine on WordPress 4.7.2.
Forum: Plugins
In reply to: [WP-PostRatings] Can we invert thumbs down and thumbs up?Hi, do you want to change the functionality of the buttons or just their images?
If you want to change the images, you can change them at
/wp-content/plugins/wp-postrating/images/
and change their name/icon.Forum: Plugins
In reply to: [WP-PostRatings] Custom StarsThanks lester chan, i was going to submit a thread for this.
However, it would be great if you manage to add an option so we can add our own stars. The default stars really don’t suit my theme.
An option to give the full url (or path to stars, even outside the plugin folder) would be nice. I don’t like to change the plugin’s files for this.
Thanks,
5/5
Forum: Developing with WordPress
In reply to: How can i get a variable inside WP_Image_Editor?Thank you. That’s why i don’t get an answer, no one reads the code because it’s too long ?? however it’s just a copy of the original class, i only changed 1 line :
return trailingslashit($dir)."{$slug}/{$name}.{$new_ext}";
I will see if i can get it any further using your suggestion.
Forum: Developing with WordPress
In reply to: How can i get a variable inside WP_Image_Editor?Thank you. One suggested to define a global variable and pass data through it, but i don’t know how. I’m not a server-side programmer, i do the front.
However i’m sure the answer it easy and can be written in the fewest lines, but most of the people don’t bother reading the question since it’s long (even on stackoverflow).
Btw i’m using other filters to implement the rest of the job, the only part i’m stuck at is this. I can’t fix both URL and folder structure at the same time.
How is that a newer question than mine has an answer while mine doesn’t?
Forum: Plugins
In reply to: [NextScripts: Social Networks Auto-Poster] How to post custom image size?Any clues please?
Forum: Fixing WordPress
In reply to: Editing media-template.php in appropriate wayI don’t know why everyone is interested in whether it should or it should not, rather than discussing the technical problem. anyway thanks for the time.
Forum: Fixing WordPress
In reply to: Editing media-template.php in appropriate wayMr. steve i answered that a lot of time. I changed thumbnails name and directory as i wanted, but now, the ONLY problem is : i can’t see my image’s preview in media library (only when viewing in grid mode), because the images still are using the old directory structure and name, and it will return a 404 error.
For example, the image link should be like this :
<img src="https://sample.com/thumbs/sample_small.jpg">
but it is:
<img src="https://sample.com/wp-content/uploads/sample_small.jpg">
which
{{ data.size.url }}
controls thehttps://sample.com/wp-content/uploads/sample_small.jpg
link.Forum: Fixing WordPress
In reply to: Editing media-template.php in appropriate wayMy problem is, this value
{{ data.size.url }}
still returns old thumbnail path. I just want to know how can i replace the path with new path, sincestr_replace()
didn’t work. Can you please tell me what language is this template written in? except php.Forum: Fixing WordPress
In reply to: Editing media-template.php in appropriate wayCan you please tell me how to work with that file? i would be grateful.
Forum: Fixing WordPress
In reply to: Editing media-template.php in appropriate wayI was trying to change thumbnails generation directory and structure, which has no hook, as far as i know.