Wordpress Discussion

  • Started
  • Last post
  • 164 Responses
  • PonyBoy1

    best plugin to backup an entire WP site and DB?

    • don't use a plugin if you have hosting control panel access?fadein11
    • i presume not but just checking.fadein11
    • I do...already backed up the db (which is tiny)...it's my content. :( FTP connection SUX w/the old host...says DAYS. This 1 file at a time shit is nonsense. :)PonyBoy
    • oh wait... you're talking about running a command line or something to copy everything? can you do that? I seem to recall... ?PonyBoy
    • wordpress files shouldn't take long unless a content heavy site. if you have control panel access should be a backup website files option in there?fadein11
    • what host is it? what control panel, in backups on main control panel screen, go in there and should be 2 options, backup database and/or backup website filesfadein11
    • host: network solutions... I'm checking options. I ask about the plugin cuz qbn's cosmo of all people recommended I use one (dude builds these sites all day)PonyBoy
    • I do, always use the control panel backup, not sure how reliable wordpress plugins are from experience. go into control panel and click on backups, will be anfadein11
    • option to download website files.fadein11
    • duplicator is reliable.sted
    • We use Updraft and back it up to Google Drivedbloc
    • if it's just one time - download DB from PHP admin... download site files via FTP.hotroddy
    • *export DB from PHPmyadmin. it will download to your computerhotroddy
    • exactly what I ended up doing, hotroddyPonyBoy
    • Duplicator. As Sites said. But depending on the site and hosting limits a 2GB site will give you a lot of problemsSalarrue
    • @PonyBoy: that only works if the files are at the same path on the two servers and the domain will be exactly the same. be careful with that :)sted
    • wp stores some of the details in special fields where those find/replace methods you find online most of the times fail.sted
    • not to mention how various pagebuilders are using to store asset properties.
      duplicator makes these changes at the setup,
      sted
    • and you won't end up with an encrypted package what you can't use outside the plugin like with Updraft.sted
    • good advice, sted... thank you, all!PonyBoy
    • I use "all in one migration" easy and fast, copies everything, no need to get in the DP and change file paths or any stupid shit like that.moldero
  • dee-dubs0

    plugin recommendation please... looking for similar to store locator type plugin.

    Posts/pages will be added, and they each need to be able to add/have their location / address

    then need to be able to search these based on proximity etc.. have found a few that look like may do this but looking for recommends.

    Much love

    • Although I prefer to use a custom setup of https://mappresspro.… (Great support, customization, etc.), I've had luck with:ideaist
    • https://cardinalwp.c…
      https://wpstorelocat…
      https://welaunch.io/…
      ideaist
    • A note: keep it simple UNLESS the site is 100% a store locator. Do minimal customization and let the plugin do the work. "Scope creep" on these is contagious!ideaist
    • Yeah am nervous about implementing.. and want to keep as simple as possible. Not going to be actually showing maps..just need to proximity/geo functionalitydee-dubs
    • have you ever used: https://geomywp.com/…
      it looks like it combines Geo with search which I think ill need
      dee-dubs
    • what dee-dubs said, used it a couple of times, very good.fadein11
    • ^ Fade, you saying geomywp is good? Ive never used just found itdee-dubs
    • oops sorry it was your question :)
      yes try that, I've used it on 2 sites and worked great.
      fadein11
  • scruffics0

    The company I work for got an external agency to build their new website. Agency is doing it in wordpress and we have just received a link to the staging site so we can start populating it with content.

    Is it just me or its it actually weird that when i upload a new image to the media library it doesn't automatically get resized into S, M, L and Full sizes?

    I thought that was an inherent WP functionality which is easy to customise to match the theme's image size requirements. I've just raised the subject with our account manager and was told that they have never done that functionality for any of the websites they have ever built, and that they could look into it for us for a bunch of extra money or, alternatively, that we could set up a Photoshop script and then process and batch upload images on our end.

    Those can't be our only options, can they?

    • It's quite easy to set up custom image sizes in functions.php or using a plugin. Seems odd they would charge a lot for that.
      Or CSS can force the sizes.
      fadein11
    • that's what i thought - just a few lines of code in functions.php and you can have as many sizes as needed.scruffics
    • CSS works too but we are trying to optimise the page load times and would like to have appropriate size images where neededscruffics
    • yep CSS as a last resort and not if images are huge obvs.fadein11
    • thanks fade! does any one else have anything to add?scruffics
    • It's literally a single line of code. https://developer.wo…monNom
    • But that's only for new images that are added, does not work retroactively. So depending on your needs, you might need to batch process images.monNom
    • I got the impression no content had been added yet. But yep not a solution if content already in.fadein11
    • forcing css changes effects optimizationpockets
    • it does automatically, you don't see them in the media library...but you can load them by thumb,medium, large or declare your own img size if with ^phpuan
    • What uan said...if you look in the uploads folder you will see they are already there.yuekit
    • The agency saying "they could look into it for a bunch of extra money" is hilarious. This is very basic stuff.yuekit
    • https://www.hostinge…yuekit
    • they want custom sizes.fadein11
    • easy to do but the agency are saying it's hard. weird.fadein11
    • in my experience, saying its a bunch of extra money just means you dont want to fucking bother, but if someone will pay you a bunch, you'll bother.mantrakid
  • _niko0

    anyone know of a fix for wordpress element fields that don't allow html?

    using a theme that has pre-made team element for example and the text field for the bio won't allow html.

    <p>so it ends up looking </p><br />like this and is annoying as hell<br />end of rant

    not trying to do anything fancy just a paragraph tag or line break or href

    • you have to update field to html text box. easy to do on a static html file but not in wordrpess where that field is likely dynamically generated.hotroddy
    • may be easier to generate a new field in wp's custom fields if proect allows.hotroddy
  • dee-dubs0

    HELP ME QBN, you're my only hope !!!

    Can someone assist me with what I hope is simple problem.

    I am using the great misha post more ajax load:
    https://rudrastyh.com/wordpress/…

    click a button and more posts load via ajax magic.

    I have tried to alter the code a little as I dont want all posts to show, just ones that belong to certain categories (only ever one at a time). Did it to one page (fed in cat 2) and works just fine.

    I just cant work out how to dynamically set the cat so that depending on what page you are on determines what cat is requested for more posts

    I have tried the below:

    https://pastebin.com/C3W2DB4R

    and added the function page_post_var() which works when called by misha_my_load_more_scripts but not when called by misha_loadmore_ajax_handler which I am assuming is because maybe this is called before it actually knows what page it is on?

    Im not amazing at code, is there a simple way i can alter this to get it working how I need?

    • php controller has no idea about that pageid, you need to pass the pageid variable to the ajax controllersted
    • add in js 'cat_id' =>
      or get the page catid in php.
      sted
    • actually this shit should know what category that page belongs to: $_POST['query']
      or you can inject the catid into this.
      sted
    • Thank you so much for trying to assist...however Im starting to think this is above my thick comprehension, I'm struggling to get my head rounddee-dubs
    • Am i right in thinking i can do away with the extra function i wrote and just pass the cat in better way?dee-dubs
  • sted2

    using current pageid:

    $cat= get_the_category();
    $cat_id = $categories[0]->cat_ID;

    use get_posts
    and 'category' not 'cat_id'

    https://developer.wordpress.org/…

    • so $cat[0]
      not $categories[0]
      sted
    • the problem with this is that you will always get only the first categories posts for that page. so it's better to paste that variable in the ajax call.sted
    • I'm not sure I understand, where should I be using this? Tried below this but made things worse:
      https://pastebin.com…
      dee-dubs
  • nocomply2

    That that pagespeed stuff with a grain of salt.

    You can get poor scores on those tests and still have a really fast site.

    In the end, what really matters is how long your site takes to load.

    There's a lot of low-hanging fruit you can probably grab, but after that for most cases you quickly reach a point of diminishing returns.

    Your web host has A LOT to do with your site speed. With a good host, you can skip a lot of the optimization stuff and still be fine.

    For WordPress sites my favorite caching/performance optimization plugin is https://wp-rocket.me/. It's not free, but it's easy to use, very well supported, and works great.

    Use that in conjunction with an image optimization plugin like https://wordpress.org/plugins/wp… and you should be pretty good.

    That's what I do for all the sites that I manage.

    • Yeah, I concur. It's mostly uneducated clients simply running speed test independently and getting lacklustre results; not knowing what they mean...ideaist
  • ideaist0

    As to the above note, has anyone been able to make gains on https://developers.google.com/sp… at all?

    I seem to be stuck at around 25% on mobile and 75% desktop.

    I've NOT yet enabled Gzip compression OR done server-side caching as per suggestion(s).

  • ideaist0

    Hey QBN gang,

    Looking for some help with page speeds on a few WordPress sites. Is there a "magic bullet" or "bullets" for speed OR is it basically a crap shoot of caching, compression, etc. plugins?

    Thanks in advance.

    x

    o

    • 1. gtmetrix
      2. url
      sted
    • wpcache+autoptimize
      - no external fonts
      - no external js or css
      - remove revisions, obsolete content etc.
      - optimize images on upload
      ...
      sted
    • use your necessary assets of off CDN as well as they will get cached.Boz
    • host on a dedicated virtual serverhotroddy
    • Nice boyzzz; Shellie any advice from a female perspective?!

      ; )
      ideaist
    • you can use cloudflare for CDN. you would need to change your nameservers to theirs. i use tinypng for image compression. use nginx if you can.vwsung18t
  • Salarrue1

    Hey guys, have you tried this yet? http://www.if-so.com

    • Interesting. I wonder if it works with ACFdbloc
    • yep v.interesting.fadein11
    • haven't tried yet thoughfadein11
    • Cool, really interesting idea..I wonder the same about ACF compatibilitydee-dubs
    • their intro presentation is well doneGnash
    • if it doesn't play nice with ACF then pretty much useless though. had a look for info and couldn't find any.fadein11
    • Great plugin. I tried it witht ACF, works great.BenPora
  • Cosmodrome0

    This is not exactly a WP question, but I recently inherited a WP site that was hacked. I was able to clean up all the bad files, install security and everything is clean now.

    Problem is the site is receiving thousands of hits per day from malicious bots or whatever they are. The security plugin is blocking them and locking out IPs (about 12 per day), but it's screwing up the analytics. Google says the site is clean, but the traffic numbers are ridiculous.

    How can I make this right?

    • you can wait this out, bots go away. or move the site to a new IP and do a permanent SEO redirect to the new site for a view weeks. then cut the rope. done.api
    • Thank you. Exactly the answer i was hoping for!Cosmodrome
  • elahon7

    Toss this in functions.php to disable Steve Guttenberg on pages and posts:

    // disable for posts
    add_filter('use_block_editor_for... '__return_false', 10);

    // disable for post types
    add_filter('use_block_editor_for... '__return_false', 10);

    • yes suh. found that right when it was released. Not sure about The Gute yetdbloc
    • Same. Old habits die hard.elahon
    • Guttenberg suckspockets
    • There’s a plug-in to use the classic editor.mg33
    • you don't need the plugin...just this code.dbloc
    • thanks for sharing! prefers functions.api
    • did not know, classic Editor is an official plugin! nice to have. https://wordpress.or…api
  • oey1

    My housemate is working at the local University for her PhD in Communication, Literature and the New Media or something.

    She asked me yesterday help with Wordpress cause she wanted to format some text she had written...

    I was like? What?

    And that's how I met Divi...
    I was impressed but also like WTF?!

    Any thoughts?

    • And I met a guy over the weekend that said he was a webdesigner. I asked which tools and he replied Divi. I asked, do you know Bootstrap and Foundation?oey
    • Reply: Never heard of.oey
    • just a another page/theme builder plugin for wordpress.api
    • Divi and other page builder plugins are cancer on sites and I've had so many people come being screwed with terrible sites.Boz
    • they can be massive overload cause of the lot of the features, it can slow down pages massive. looks like divi does a good job in marketing.api
  • oey1

    WordPress 5.0.1
    Any thoughts?

    • I'm nervous about updating some of my sites...elahon
    • you should beapi
  • dbloc1

    Maybe I just don't understand it yet, but I'm not a fan of the Gute

    • you can have a guten free diet if you likeoey
    • yeah I disabled in functionsdbloc
    • garbagepockets
  • BusterBoy0

    I had some Wordpress / woocommerce work done by a contractor for a client in 2015. Didn’t end up getting implemented...but I have a new client who may be interested in what was built.

    I know bugger all about WP so just wondering how to load the old work? I have all the working files.

    Would I install Wordpress and then upload the old files on top? Or will that break things?

    Can I only use the theme that was created?

    Any advice appreciated.

    • themes in the wp-content/theme folder, plugins into the plugins folder for the start... you should have a database and file backup if you want a full restoreapi
    • and you might need to keep the new wp-config.php file instead of the old (where db password is stored)
      https://codex.wordpr…
      uan
    • TksBusterBoy
  • oey0

    Anyone experienced in selling music online?
    A friend of mine would like a simple WP website where some snippets of songs could be played and you can click to buy the album.
    Which plugin would you recommend?
    No soundcloud.

    • Bandcamp page, then Bandcamp embeds on website, although website may not be needed at all unless he needs other features.fadein11
    • If you don't want to use an external service at all then just use Woocommerce, it can handle digital downloadsfadein11
    • He actually has a website that I've made but html, css and js only. His wish is to have a Wordpress instead so he can manage content.oey
    • I asked him about Soundcloud and Bandcamp and he said he already has that but for other things and he wants to have it on the website only.oey
    • ah ok, in that case just upload clips of tracks to website and then use Woofadein11
    • for downloads/payment. There are other premium plugins but Woo is free. You will need a Paypal or Stripe account to take payments.fadein11
    • Why not use a service like MusicBed, they have a built in audience.ArmandoEstrada
    • I get the impression he wants to do it all via a website. Which yep seems crazy to me, no point reinventing the wheel on stuff like this.fadein11
    • ^ this. I tried. and thanks for the feedback!oey
    • what about easy paypal?oey
    • never heard of thatfadein11
    • paypal is easy anywayfadein11
    • LOL!oey
  • oey0

    Breaking my head to make FlexSlider controlNav buttons to show.
    In flexslider.js controlNav is set to true.

    I can't find the buttons anywhere though.
    I already tried to add them manually but it didn't work.

    Can anyone please check what I'm missing?

    http://patternedcollective.net/b…

    • sorry, but I think I found the way. the file to modify is global.js. and after I enqueued this script the li numbers are finally showing.oey
    • guess it's only css now.oey
    • I feel a bit stupid now...hahaha!oey
  • ideaist1

    Hey gang,

    Too lazy (JUST had my 2nd son) to go through 5 pages of information in hopes of finding 2 things:

    1. Multiple WordPress installs; is their a best practises for this? I'm tired of logging into them on a weekly/monthly basis...

    2. WordPress / General Malware Prevention: I have a few dozen sites on 1 server currently; I know it's bad practise BUT I just can't help myself.

    Is their a "silver bullet" WordPress security method I'm missing? I've tried WordFence, BUT it doesn't seem to be doing the trick...

    ...My domains are a variety of WordPress and non-WordPress / "Old School" html / css domains.

    ...Asking for a friend.

    : )

    • ...Competing with both the "Chick of the Day" & "Apple" threads is disheartening.ideaist
    • get a server where the admin handles security. don't give any admin rights to users.uan
    • 1. If its the same company w/ multiple wordpresses id look into wordpress multisite, one login to maintain them all. if its just a bunch of clients id use:pockets
    • Jetpack(free) or paid options like managewppockets
    • 2. Wordfence and sucuri for hardening.. id use a a managed wp host, or aws.. you can never be 100% secure regardlesspockets
    • Disable curl in apache and just update a local copy then sync to server. Most exploits need to load scripts from remote servers. This kills that ability.monNom
    • oldschool html sites are prone to leaving holes in your serverpockets
    • But also kills your ability to update, so you need to run a staging server locally.
      Also don't use "free" versions of paid themes from sketchy sites
      monNom
    • never use the username admin, remove readme.html on all sites and wp version information.pockets
    • Strongly consider removing ALL features with user generated content (comments, file uploads, etc.) This is how most exploits happen.monNom
    • yea get disable comments pluginpockets
    • K, so most of these ideas/solutions have been running through my head...

      ...Thanks and keep 'em coming.
      ideaist
    • https://ps.w.org/suc…pockets
    • For managing multiple WP installations I highly recommend https://managewp.com…. Saves me tons of time.nocomply
    • As for security/malware prevention, my approach is to set up notifications via ManageWP, run daily backups, and restore from a backup if something goes wrong.nocomply
    • A lot of the security tools/plugins have caused more headaches than they prevented for me.nocomply
    • Also, invest in good hosting!!nocomply
    • And congrats on your second son!nocomply
    • and congrants on post 100 <3pockets
    • Thanks dudes.

      *thumbsup*
      ideaist
    • I switched from ManageWP to iThemes Sync a while back. I like it better myself.noneck
  • hotroddy0

    I use the bootstrap framework to design my layouts in WP. I feel like I have more control but I also feel like I'm 'waisting' time when I could be learning how to use a page builder plugin instead.

    Which do you think is better? Bootstrap or a page builder? Which page builder plugin do you recommend I should learn?

    Thanks in advance

    • Beaverbuilder is well put together. Visual composer is the most popular. Either way , your understanding of bootstrap will help learn them much faster.T-Dawg
    • I find when clients come back with modifications it's much faster to make changes on bootstrap templates. But try one out (both come with free versions I think)T-Dawg
    • thanks t-dawg. Have you found they have limitations or no?hotroddy
    • They're pretty expansive with what you can do. I work in both code and page builders, depending on the project. Best way to see if it's for you is to try oneT-Dawg
    • There are some page builders out there that I've had to work with that are abhorrent. The two mentioned above are my favorites.T-Dawg
    • I suggest just poking around in the free versions of each for 10 mins. I think you'll get a better idea to whether they'll suit your needs.T-Dawg
    • thanks for the sound advice!hotroddy
    • learn the pagebuilder whats closes to bootstrap, ways easier to understand the layout management and develop into that. (i used visual composer back then)sted
    • Thanks Sted. Found a BootStrap PB. Their tag line is, "The main goal is to give you wings, without glueing them to you." Love ithotroddy