Wordpress Discussion

  • Started
  • Last post
  • 164 Responses
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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).

  • 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
  • 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
  • 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
  • _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
  • pablo28-2

    https://wordpress.org/plugins/bl…

    Blockypage is a set of custom blocks and pre-made layouts that help you build your websites using Gutenberg quickly and easily, the blocks come with all the customization options that you need: Typography, Spacing, Gradient and video backgrounds, borders..etc
    And it’s completely free!

  • 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
  • dee-dubs0

    on the hunt for another recommends.. this time on the subject of "invest in good hosting!!"

    Pref UK based, ideally with daily backups, downtime/alert notifications etc.. basically a host to take the headache out of keeping it secure and reliable .

    • Both the companies I used with this kind of set up in the past got bought out things went ↘ pretty much immediately. Will watch suggestions with interest.webazoot
    • WPengine.com if Wordpress.
      Above average price but worth it.
      Does everything you need.
      fadein11
    • Bluehost has wp hosting similar to Wpengine but 1/4 the cost and not as fast. Either you go with a turnkey like these products or you need managed hosting.spot13
    • Personally I use Digital Ocean, not turnkey or managed but very cost effective and easily scalable.spot13
    • thanks peopsdee-dubs
    • https://www.webfacti…grafician
    • Siteground, great support, one of the fastestformed
  • dee-dubs0

    this is probably a really dumb question... i seen quite a few code snippets of things being registered within functions where they have a random var a the end of each array which is the same for all entires..ie

    // Add new taxonomy, NOT hierarchical (like tags)
    $labels = array(
    'name'=> _x( 'Writers', 'taxonomy general name', 'textdomain' ),
    'singular_name'=> _x( 'Writer', 'taxonomy singular name', 'textdomain' ),

    etc (textdomain)

    and

    array('labels' => array(
    'name' => __('Custom Types', 'jointswp'), /* This is the Title of the Group */
    'singular_name' => __('Custom Post', 'jointswp'), /* This is the individual type */
    'all_items' => __('All Custom Posts', 'jointswp'), /* the all items menu item */
    'add_new' => __('Add New', 'jointswp'), /* The add new menu item */
    etc('jointswp')

    Is this just some arbitrary thing for grouping or what.. Have seen these functions where they also not used but cant work out what they'd be for

    not important, just curious.

    • last argument is the domain it's just used to retrieve the variable (if you leave it the domain is 'default').kingsteven
    • second arg for _x is the context for the translation. you'd only see that on big plugins/ themes with language packs pretty fucking niche.kingsteven
    • documentation for the double underscore function here... https://developer.wo…kingsteven
    • ah, was assuming wasn't essential but that explains itdee-dubs