u/theFletch
In this archive from Feb 2011 to Dec 2023
- 43
- posts
- 141
- comments
- 0
- media
- 414
- score
Multisite - site loosing site URL
I have a multisite install where one site, the second site I setup on the network, is loosing the site URL. Not the whole thing but network site name. For example, example.com/site2 after a period of time changes back to example.com. Everything works but when it changes I can't access the admin of s...
Problem with site url in multisite.
I've got a multisite install that I started to have some weird problems with after I did a clean install and update from an old multisite install. There are only two sites on the multisite and it's directory based. On the second site (not primary) the Siteurl keeps losing the directory. For example,...
Question about columns and loops.
So I've got a custom post type that I am using in a Foundation block grid. They are setup three per column. I'm trying to wrap my head around how to get the first three, than the next three, and so on. Example: <?php for each ($video as $videos): ?> <ul class="small-blockgrid-3"> <li>video 1</li> <l...
[Question] How to loop through a multidimensional array without a bunch of nest foreach statements.
Bulk edit categories question.
I know you can add categories with bulk actions however, how do you remove them? I've built a custom post type that has a category (status) that needs to be toggled on and off on several post at a time and done frequently. Any ideas?
Get post by term from custom taxonomy in multisite?
I'm having trouble getting post by term in a custom taxonomy I have set up. The catch is this is multisite and I'm getting this data from another blog on the network. The code I have works fine on the blog with the custom taxonomy. However when I try the same code on the other blog using switch_to_b...
Echo custom post type list view to front end?
I've built a custom post type with a bunch of custom meta fields. I really don't want to spend a bunch of time formatting the data because the tabled list view on the admin side with filters and such is fine for the purpose. Is there any shortcut to doing this without basically recreating the list v...
Restricting access to categories based on user role question.
I'm using the Advance Access Manager plugin to create custom roles for users. I would like for users to only be able to see certain categories somehow assigned to that role. For example, this is an employee site and the roles are based on department. When a member from that department logs in I only...
Public site and employee portal with one install?
I'm building a site for a client that also includes an employee portal. At first I was thinking about having two separate Wordpress installs and maybe share the same user table between the sites. Now I'm thinking of either making a password protected part of the site or basically just having the bac...
Fill out and submit a form if a variable is present in the url?
Q: Randomize a feed with SimplePie
I'm trying to randomize an RSS feed with SimplePie. I would like to have every item placed in a random order each time. Right now I'm passing a random number to start the feed on and that might work but when it gets close to the end of the feed it only displays, say 4 items, over and over. I'd reall...
Need a little advice setting up an inventory management system.
I'm setting up a simple inventory management application and was wondering if there is anything that could jump start the process. I'm more of a frontend dev but have some experience with PHP in Wordpress and for doing basic things with forms. I started messing with Laravel and found it to be fairly...
Is there a way to change the order in which your stylesheets load?
I'm loading a stylesheet from my functions file and another one from an included file. Is there a way to set an order in which the stylesheets load?
Question about auto refreshing an RSS feed.
I've got a feed I've parsed with SimplePie and it's displayed as a scrolling news feed with jquery. Right now I'm returning 20 items. What I would like to do is to refresh the entire page once the scrolling news feed has gone through all 20 items. Is this possible? In case anyone is wondering what t...
What's the quickest way to burn a .mpg to a playable DVD?
I don't need it authored in anyway, I just need to create the VOB structure and burn it.
What is the best way to send this php mail?
Anyone doing theme development with more than one person?
Just curious what your workflow is like. I'm getting ready to do some work with a developer and want a workflow where I can just concentrate on making themes not any other BS.
Need advise on a "rental" type site.
It's actually a storage unit site. The owner wants to be able to change the status of a unit from rented to open. Are there any plugins that I could work with on this? Actually it would be nice if I did a floor plan of the units and just toggled the background color from the backend. Suggestions?
Looking for an inkjet printer for short run stuff.
Just looking for some suggestions on a inkjet for shorter run stuff we could stick in the office. We often print often print brochures and various other materials in quantities under 100 and all we have now is a crappy Dell laser printer. We have probably in the neighborhood of $500 to spend.
Anyone know how to get Facebook events into Wordpress?
I know there is The Events Calendar plugin that can do it but I'm look at free options before I go that route. My first thought was to export the events to a Google Calendar and then use one of the many Google Calendar plugins for Wordpress but that seems a little like taking the "long way around" t...
Need some suggestions on how to implement a user based site.
Basically I have a handful of users that need to log in, fill out a form, attach a large video file (that uploads to an existing Filezilla server) and the form info gets emailed. Just looking for some suggestions on how to start this project. The subreddit has been very helpful in the past. Should I...
What's the best way to do this (echo php/html)?
So in the Wordpress functions.php I have a function that inserts a copyright into the footer. What's the best way to echo this? Warning: PHP noob. <?php echo date('Y'); ?> <a href="<?php echo home_url(); ?>/" title="<?php bloginfo('name'); ?>" rel="home"><?php bloginfo('name'); ?> </a> Here's the fu...
What's the best way to customize user roles?
Mainly what I'm referring to is hiding menus in the admin area. For example I have some custom post types set up that I don't want a client to access. I know there are some plugins for this but I'm wondering if that is the way to go or to just do it from the functions.php Also, what role do you usua...
Custom RSS widget??
I need a custom RSS widget to display X amount of Facebook status updates. The default Wordpress RSS widget works but I would like a little more control over it. I really would rather write a widget for this as opposed to using a plugin but I'm open to suggestions.
(PHP NOOB) Looking for a little database help.
So, essentially I'm trying to create a searchable directory. I would like to have a search field search by name, phone, etc. and output results on the same page. I'm thinking some sort of website widget. First off, here's my test connection. mysql_connect ("localhost", "root","") or die (mysql_error...
What's your workflow like?
Looking for some advice, Stock Photography.
I work as a designer at a small company. I'm the only designer and the company has never really had an on-staff designer before. I'm forging new ground. We don't have a huge budget for stock photography but we do have some equipment and I owned my own photography business for several years. My quest...
Looking for some advice, Stock Photography.
I work as a designer at a small company. I'm the only designer and the company has never really had an on-staff designer before. I'm forging new ground. We don't have a huge budget for stock photography but we do have some equipment and I owned my own photography business for several years. My quest...
Where to start with custom themes?
I'm a graphic designer who is doing more and more web work. I've got a pretty solid base of HTML and CSS built up but my PHP skills are lacking at this point. Besides the obvious of just learning more PHP (which I intend) where's the best place to start creating my own Wordpress themes. I see a lot...
[Q] Wordpress Multisite/IP change
I have a server that has a Wordpress Multsite install with only 2 sites set up. I was doing some testing with it on my company's internal network but now I'm going live with the whole thing which means the IP has to change (our network guy has different IP ranges for internal and external IPs). I've...
[Question] Using an IF statement on an RSS tag?
I'm parsing an RSS feed with SimplePie. I'm pulling thumbnails from the feed. The problem is that some of the items in the feed do not have a thumbnail (and no tag, null). How would insert a default image on every entry that didn't have a thumbnail? Here's my little bit of code, <p><img src="<?php e...
Need a little help parsing, or rather formating, an RSS feed with SimplePie.
First off, I'm a PHP newb. Second, I'm able to return the data I need alright. Now, I'm trying to format some of that data. I've defined a custom class for a particular namespace and I'm returning this date and start time, Mon, 19 Dec 2011 20:57:14 -0600 using, <p><?php echo $item->get_end_datetime(...
How secure is Wordpress Multisite?
Is anyone using it for anything other than testing environments? I want to go live with it because it would be so much easier to maintain client sites. I'm scared about losing 20 sites if one gets compromised though. Should I worry about this? Is the shared data base an issue?
How do you use an image as a submit button?
I must be doing something wrong with my values because I'm not able to get it to work. Part of the script. http://pastebin.com/X6Rv0H35
Are there any good stock photography sites that don't deal in credits?
I'm trying to sell my company on buying some stock photography and it's easier when there's a solid price behind it rather than...depends.