ZaddKeefer
Forum Replies Created
-
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueI do not got skype on my laptop.. only on my phone lol, but would be kinda awkward and complicated to have phone and laptop on the go – I got IRC and steam though, but it might be tomorrow am really tired for today..
The weird thing is.. Some posts seem to work, except one and new posts I post seems to be out of order.. I dont know if it’s something to do with the imdb link? all other posts seem to order perfectly.. Except the one, and newly added?
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueHmm my code seems to “kinda” work and yet not quite? One of my posts is not ordering at all, here’s an example of my posts ratings:
8.8
8.3
8.1
7.4
-> 8.3 <-
6.3That one post seem to be in an “unorder” something.. Might be my code? It almost works for me now
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueHmm, might be me there is a little off today.. Your code is something I probably want, I pasted your working file with the functions in my functions.php, if that can work?
Then I tried to assemble your class onto my archive.php with this:
<?php $order = "&order=DESC"; if ($_POST['select'] == 'newest') { $order = "&order=DESC"; } if ($_POST['select'] == 'prijs') { $order = "&order=DESC&meta_key=year&orderby=meta_value"; } $class = new IMDb_Movies(); $class->set_update_interval(60, "minutes"); $movies = $class->get_movies_by_rating(); if($movies->have_posts()) { while($movies->have_posts()) { $movies->the_post(); if ($_POST['select'] == 'prijsn') { $order = "&order=DESC&meta_key=rating&orderby=". get_post_meta(get_the_ID(), "imdb_rating", true) .""; } } } ?>
I am trying to make a sort functions and tried to fetch the id in my “orderby”, can you see a solution for this?
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueI’ll try this out, and will come back with a reply, thanks for putting time into this!
Will get back atchu, if anything of your code I don’t understandForum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueTried with the meta_value_num, didnt work out
I use the movie id, so it fetch the dynamic/live rating.. I could use an easy way around this by just pasting the current rating.. But then its a static rating and not the live from imdb
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueSure thing.. Here is the code: https://codepad.org/jUndoldj
The problem relies on the top of my code, the sorting functionality:
<?php $order = "&order=DESC"; if ($_POST['select'] == 'newest') { $order = "&order=DESC"; } if ($_POST['select'] == 'prijs') { $order = "&order=DESC&meta_key=year&orderby=meta_value"; } if ($_POST['select'] == 'prijsn') { $order = "&order=DESC<strong>&meta_key=rating&orderby=meta_value</strong>"; } ?>
I highlighted the thing I mean, it sorts well.. But the problem is, it does NOT sort by the rating on the frontend.. Which would be something like “8.8”, but sorts with the not transformed instead: https://gyazo.com/a639ff8ca88b905aade8c6298256b566
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueSure thing.. Here is the code: https://codepad.org/jUndoldj
The problem relies on the top of my code, the sorting functionality:
<?php $order = "&order=DESC"; if ($_POST['select'] == 'newest') { $order = "&order=DESC"; } if ($_POST['select'] == 'prijs') { $order = "&order=DESC&meta_key=year&orderby=meta_value"; } if ($_POST['select'] == 'prijsn') { $order = "&order=DESC<strong>&meta_key=rating&orderby=meta_value</strong>"; } ?> <form method="post" id="order" class="pull-right"> <select name="select" class="btn dropdown-toggle" style="padding: 7px; background:#428bca; color: #fff;" type="button" onchange='this.form.submit()'> <option value="newest"<?php selected( $_POST['select'],'newest', 1 ); ?>>Recent Added</option> <option value="prijs"<?php selected( $_POST['select'],'prijs' , 1 ); ?>>Year</option> <option value="prijsn"<?php selected( $_POST['select'],'prijsn' , 1 ); ?>>Rating</option> </select> </form> <?php query_posts($query_string . $order); ?>
I highlighted the thing I mean, it sorts well.. But the problem is, it does NOT sort by the rating on the frontend.. Which would be something like “8.8”, but sorts with this instead: , which isn’t “sortable” I want it to sort the outcome of the field
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueSounds great, talk to you tomorrow mate
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueWould be cool to add you on skype and all that, but I don’t got skype on my current business laptop and with no mic nor cam.. so might be a problem currently -.- :/ Hopefully we can discuss this on the thread whenever tomorrow (danish time) here.. So hopefully I/you see a solution for this tomorrow mate!
Thanks for responding fast and connecting on this thaikolja!
I am always open to respond on chat on steam for further details.. real_player123 is my username
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valueYes that’s correct? And ehm.. I got the imdb rating by using your plugin functions combined with an other function of WordPress by fetching the get_post_meta field I created under a post called “rating”, there I pasted the imdb link to the movie, marked in bold: https://www.imdb.com/title/tt1663202/ and used your function to fetch the rating, and transform it into the imdb rating:
<?php imdb_connector_get_movie("Apocalypse Now"); ?>
instead of typing in the title, which is kinda random since most movies/series are named the same.. So I made an argument called $imdbrating equal to WP get_post_meta function<?php get_post_meta($post->ID, $rating, true); ?>
which was the url title that gave me an direct link and correct link to the movie I wanted in my meta field.. But that’s not the problem here. I want to know if there’s some sort of way to order by the output of my tranformed meta_field that is a rating such as “8.8” and not a title nor a part of an url.. The output works fine.. but wordpress seems to order by the field on my post backend and not on the output on my website.I want a workaround on this, thanks a bunch!
Forum: Plugins
In reply to: [IMDb Connector] Get the frontend/output of meta_valuebump
Forum: Fixing WordPress
In reply to: Get transformed meta_value output?Alright thanks for the respond, will try and post the issue there!
Forum: Fixing WordPress
In reply to: Possible to link parent category to another parent category?Never mind figured this out on my own, by just using tags on all posts and getting the category tags.
Forum: Fixing WordPress
In reply to: Possible to link parent category to another parent category?Bump
Alright thank you for the quick respond, will try this out if this workaround ain’t doing the thing – I’ll just be waiting for your developer team to integrate Profile Builder with Social Login
But thanks a bunch!