Emilie
Forum Replies Created
-
Still looking to solve this problem, can anyone help?
That solved it, thank you! ?? Great plugin btw, I just couldn’t find a plugin to insert PHP code that wouldn’t break because of the visual editor. Using shortcode did the thing.
And the link : https://www.linavandal.com/oeuvres/2013-within/
Here is the code for the snippets :
$links = siblings(); $previous = '<span class="prev"><a href="%s"><i class="icon-chevron-left icon-2"></i></a></span>'; echo sprintf($previous, $links['before']); $next = '<span class="next"><a href="%s"><i class="icon-chevron-right icon-2"></i></a></span>'; echo sprintf($next, $links['after']);
And the code in my functions.php :
function siblings($link) { global $post; $siblings = get_pages('child_of='.$post->post_parent.'&parent='.$post->post_parent); foreach ($siblings as $key=>$sibling){ if ($post->ID == $sibling->ID){ $ID = $key; } } $closest = array('before'=>get_permalink($siblings[$ID-1]->ID),'after'=>get_permalink($siblings[$ID+1]->ID)); if ($link == 'before' || $link == 'after') { echo $closest[$link]; } else { return $closest; } }
Forum: Plugins
In reply to: [OptionTree] OptionTree empty after fixing linksScott, I ended up resolving it but neglected to post it because I felt kind of stupid. All the time I was looking in the database and such. I don’t remember what I did exactly. I installed the OptionTree plugin and I remember going in my themes options and then all I had to do was change the links in there. Hope that solves it for you!
Forum: Fixing WordPress
In reply to: Hacked?esmi, great info thank you! I will go through it and fix what needs to be.
Things got solved out. My web host spotted attacks and installed that extra check to make sure we don’t get hacked. I much prefer that! Currently making sure all my students’ sites are ok.
Forum: Fixing WordPress
In reply to: Hacked?Everything is good (only warning is for outdated software), I have some older WordPress installations on there.
Forum: Fixing WordPress
In reply to: Hacked?I’ve checked the functions.php of the theme the student used but checking all of them will take forever (they made me install LOTS of themes in their enthusiasm lol…) nothing fishy in my .htaccess or wp-config files and in the functions.php files I’ve check so far
Forum: Fixing WordPress
In reply to: Hacked?Thanks Brett, checking right now. I have other WordPress installations on this space and all are reacting the same.
Forum: Fixing WordPress
In reply to: Hacked?Just to add info, I’ve contacted my host to see if it’s something they have implemented and I’m waiting to hear back from them. Is that common?