Aleksandar
Forum Replies Created
-
Alright so basically even if i create some a little bit complex metabox like slider with images and videos and custom text, all the fields in slider will be input fields so i don’t have to worry about sanitizing them. While creating custom options panel for my theme in admin area require sanitization. Right?
Having the same issue with wp 4.1 text displays on each page before content.
Im not sure if google wallet is what i need.
I need to have funds loaded on my website, on his account when he add funds.
Something like steam if you heard for Steam online game shop.
I will take a look at the links a bit more.
Forum: Plugins
In reply to: [Multiple Post Thumbnails] array for post_types doesn't workMy bad, i was missing a part of the line in the code, i fixed it. Sorry, it’s late night work and brain is already tired to read all the lines clearly.
Forum: Themes and Templates
In reply to: Get current menu title and description as page title?I did created it like this, but this will only display Our work of magic, where i put the_title()
i want to display it like Portfolio Our work of magic
Forum: Themes and Templates
In reply to: How can i have blog posts with 2 different theme styles.I already have something like style switcher implemented in my theme but it was not what i was looking for, in the end i will end up with and option select like i explained in my previous post.
Forum: Themes and Templates
In reply to: How can i have blog posts with 2 different theme styles.Yea you are right, you don’t understand me right but it’s not your fault, im not explaining it right.
It’s a bit hard to explain when i don’t know all the technical terms. What i want is not multiple themes, not duplicated content, just an option for an end user of the theme to be able to select in which style he will show blog posts. Like in image one, or like in image 2.
I think i will go with a switch option built in index.php page.
Since my theme will have theme options to customize it, i will add an option for theme user to select whether he will show blog posts with style 1 like on image 1 or with style 2 like on image 2.
And in index.php i will make switch statement, so if style one is selected switch to loop with style one, if style 2 is selected switch to loop with style 2.
This will maybe overload a site a bit but that’s only way i know how to do it for now.Forum: Themes and Templates
In reply to: How can i have blog posts with 2 different theme styles.But if i use custom page template, i can apply custom style only when i list all blog posts.
If i go to list posts by category or specific tag, it will switch back to default style of archive.php page or index.php. Right?
Forum: Themes and Templates
In reply to: How can i have blog posts with 2 different theme styles.I didn’t know that this forum doesn’t support tags. I edited links with direct url to images.
Forum: Themes and Templates
In reply to: How can i have blog posts with 2 different theme styles.Custom post types is basically another set of posts, i just want to know what are the options to have same set of posts but to be able to show them in 2 different styles.
Take a look at example of images
https://postimg.org/image/lxekchxo7/
https://postimg.org/image/6nep5b25z/
These are the same posts but on 2 different pages and shown in 2 different styles.
No the plugins doesn’t work. I have seen cross domain on network of sites on few magazine sites that keeps user loged in when changing site so there is gotta be solution only they probably hand coded it personally for their sites. I thought that wordpress will manage that if you are loged in on one site, you are automatically loged in on another in network by tracking referrer.
Nope, i was searching all around the internet but no luck in finding a soloution.
Forum: Hacks
In reply to: Custom login form to wordpress admin bar?Nope, the admin bar can be set to be visible always even when no one is logged in to website, so my point is to gather all data, links, profile info, to one place on network of websites, and this is the login bar, so when you are not loged in to show you the login form.
I btw found the solution but it’s still not the best one, maybe a few more tweaks but it works.
To always show login bar it’s simple code like this
add_filter( 'show_admin_bar', '__return_true' );
And login form that i have working on website now is this.
$wp_admin_bar->add_node( array( 'id' => 'loginform', 'parent' => 'top-secondary', 'title' => '<form action="' .wp_login_url(). '" method="post"> <input type="text" id="inputUname" name="log" placeholder="Username" > <input type="password" id="inputPassword" name="pwd" placeholder="Password"> <input type="checkbox" name="rememberme" id="rememberme" checked="checked" value="forever" >Remember me? <input type="hidden" name="redirect_to" value="' .$_SERVER['REQUEST_URI']. '" /> <button type="submit" class="btn btn-info" name="submit" value="Send">Login</button> </form>' ) );
It’s still in the work though.
Forum: Networking WordPress
In reply to: Featured images from posts gone after migrationTimthumb generates thumbnails but it’s not timthumb the problem, i found a problem now i only need solution to fix it in the way that i don’t go from post to post and change every thumbnail path.
The problem is that somehow on this website when migrating, paths of the thumbnails in database didn’t changed, so instead of having wp-content/uploads/sites/4/ path to thumbnail. i have wp-content/uploads/ path to thumbnail. only way as i see now is to edit every post separately and add /sites/4/ to thumbnail paths, or edit database which is almost the same time consuming process. Is there a way to batch change paths without messing up other sites paths of the images?
Forum: Plugins
In reply to: [WordPress MU Domain Mapping] Second domain mapping not workingI have just deleted my website and did whole process again and now it’s working.