Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
well why not
Feb 10, 2009




can anyone suggest a WP plugin for rating/ranking posts? I'm making a music site that's going to have a lot of links to tracks, and it'd be really cool to have a widget with the top-rated posts in the sidebar, then a full listing of say, the top 100 posts on a page.

Adbot
ADBOT LOVES YOU

well why not
Feb 10, 2009




huhu posted:

Really basic question but trying to read WordPress's Wiki articles for an answer is confusing... if I install WordPress in a directory, say /website, if I download the entire directory, have I completely backed up my website?

The 'export' function in WP's admin will let you export all content. You can also export the DB from say, phpMyAdmin if you have access.

My work is thinking of switching up workflow, was wondering if anyone had any suggestions on workflow for really fast WP theme development? We have an in-house framework theme, which is very nice, but I'm not sure the path we're leaning towards is ideal.

Lead has suggested installing locally (probably using vagrant/scotchbox) and developing the theme locally. Grunt will compile LESS files, autoprefix etc and push a repo. Once the aesthetics of the site are complete, we install WP on the actual remote server and sync the theme from the repo. This is to make sure that the entire theme of the site is a hosted repo and that we're not pushing up entire sites on our office's extremely poo poo internet. It kind of feels like overkill for the amount of smaller, cheaper sites we do. What would you guys suggest?

well why not
Feb 10, 2009




Cugel the Clever posted:

Major thanks for the ACF recommendation—it's a drat fine deal for all it does.

Another question: I'm looking to have a logo centered in-line with a header nav menu. What's the best way to fit it in there? My current ideas are either just inserting it in the middle with Javascript, or knocking my head against impenetrable wall that is extending the wp_nav_walker.

Proof of concept for the Javascript/jQuery method:
code:
function isInt(n) {
	return Number(n) === n && n % 1 === 0;
}

$(document).ready(function() {
	var n = $('.nav-header li').length(),
	data = 'wp-content/themes/mytheme/acf-json/data.json',
	url = $.getJSON('data', function('json') { return json.logo_image['url']; },
	alt = $.getJSON('data', function('json') { return json.logo_image['alt']; };
		
	isInt(n) ? n = n : Math.floor(n);
	$('.nav-header li:nth-of-type(n)).after(function() {
		return '<div class="logo"><img src="' + url + '" alt="' + alt + '"></div>';
	}
});
Of course, IE11 doesn't support Number.isInteger() or template strings... Thanks Microsoft!

The ACF-generated JSON files seem to have randomly generated names when the settings are saved, too, which I suspect is problematic if I want to use my theme for a different project.

Depending on the theme, you may be able to add a custom link to your menu, with a specific class. So, you could have an item with the link to your home, and a specific CSS class that'd let you replace the text with a logo. Check your screen options on the Menu page.

That, or figure it out with absolute positioning and an nth-child to move the centre menu items.

well why not
Feb 10, 2009




cool man, glad you made it work

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply