The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
319 views

Wordpress language switcher

Is there an easy way I can switch between languages (perhaps with some flag icons) on a single Wordpress site? Can this be done with 2 content editors on the same page, or will I have to resort to a ...
1
vote
2answers
230 views

Specific theme for non logged in users

I want to make an specific theme for non logged in users, but I donĀ“t know how to make the function or plugin to shift the theme for them, and left another specific theme for logged in users. Anyone ...
1
vote
1answer
790 views

switch a theme different per user role

I plan to use the member plugin by Justin Tadlock I wish to know if how could I, on the front side, auto switch to a theme according to a role status.. for example authors would have the site ...
1
vote
1answer
45 views

help to write a custom php script to settingup yoast priority to pages or posts

I'm trying to improve this tutorial script including a switch in the first ifcondition to assign a custom priority to my Yoast Xml Sitemap only to certain post or pages. So i'm trying to say to ...
1
vote
1answer
404 views

How to Display Frontend CSS for Administrator only

I've been asked to restyle the css of a WordPress website frontend. The website can't be in maintenance mode while working on it as it must stay up and running all the time. I assume that if I can add ...
1
vote
0answers
329 views

Switch to other theme at url

I want to switch to other theme at this url - www.mysite.com/m/ . And then redirect mobile users to www.mysite.com/m/ with htaccess based on their "user-agent". I have htaccess redirect rules and it ...
0
votes
1answer
45 views

RTL/LTR frontend switcher

I have a theme that supports RTL. When Appearance->Theme settings->Right-to-Left (RTL) text orientation is enabled theme switches correctly. But I want to add to the main menu 2 items to switch ...
0
votes
2answers
80 views

Wordpress Menu Exchange On Tablet's Orientation

I am using the plugin PHP Browser Detection and I want to achieve different menus for different devices. I have set them up called primary and mobile. Now, I want to switch those on used device. ...
0
votes
3answers
2k views

Using a switch statement in Wordpress

I've got a piece of text in a div that I want to change on each page of my website. At the moment I'm not sure what function I should be using to do this. Here's what I have so far... <?php $page =...
0
votes
1answer
690 views

How to move a post to different post type with all meta data?

I'm trying to move a post from a custom post type called 'new cars' to 'sold cars' using the Post Type Switcher plugin, and the plugin works well, but the all meta data associated with this post still ...
0
votes
2answers
24 views

How to switch from an existing website to Wordpress website? [closed]

I have a non-profit website that needs a LOT of work. I would like to start fresh with WordPress. How would I do that--I already have our name ...kenyareal.org
0
votes
1answer
59 views

Wordpress Menu Exchange for Mobile Layout

I want to have two different menus for desktop and mobile phone users. So, I have created two places for two menus (primary, mobile) with this function: functions.php: function is_register_my_menus(...
0
votes
1answer
36 views

blog change and move to anther hosting for a multisite

I have a multisite and there are 3 blogs. (let's say blog1, blog2, blog3) First question, How can I change the order of blogs? as you may know, blog1 is the main. I want to make blog2 should be the ...
0
votes
0answers
18 views

move category and post_tag (taxonomy) from posts to another post type

There is a plugin that switch post type https://wordpress.org/plugins/post-type-switcher/ We need similar solution to switch taxonomy=category and taxonomy=post_tag entries to another post type, any ...
0
votes
2answers
19 views

How to switch between two forms for visitor once admin logged in?

I have two forms (form1 and form2). Once the admin is logged in anywhere, all visitors (not logged in) to my WordPress site should see form1 on the page, otherwise they should see form2. I am using ...
0
votes
0answers
41 views

Query posts by switch

I need your help to add a case to a switch in my theme to order posts. My theme uses a query_post: query_posts( $query_string . $orderby ); In the loop to order generated posts. The query uses ...
0
votes
1answer
67 views

Best Method to Switch Between Terms (Custom Taxonomy)

Looking to learn something, here. With the following code, I am loading an external file for each condition based on a known set of custom terms. I'm using has_terms to check for a specific value ...
0
votes
1answer
203 views

How can I allow access to two user accounts using one login?

I have spent the last two hours searching for this and I cannot find a solution to my problem. I have a WP site with WooCommerce running which allows to users to create their own store. My client ...
0
votes
0answers
39 views

Language switcher for subdomains

We are running a wordpress site with Greek content (political & economical analysis) and we want to set up an English site of our site. The English site will be running on its own wordpress ...
0
votes
1answer
76 views

Subcategory IDs in relation to parent category ID switch case

I would like to switch ads tags in my footer depending on which category it displays at the moment. Code from below works fine for custom category pages and category pages that are included in the ...
0
votes
1answer
97 views

How to switch subdomain with root domain and redirect traffic?

I want to move subdomain to root, and create a new root. I have root.com. I want to move it to sub.root.com and install a new Wordpress intall at root.com. Any idea how I redirect the traffic from ...
0
votes
1answer
75 views

Change header based on visitor choice

I need to show a different header file ("header-tourist.php" and "header-agent-php") based on a choice the visitor will make. For example, I have 2 main buttons: View site as Tourist or View site as ...
0
votes
0answers
38 views

Wordpress templates bug

I have a WP problem that's driving me crazy. I have created several templates, and it decides to switch them all the time... I think it does when I create a new template file, but it never did that ...
0
votes
1answer
264 views

add_action() in switch statement

I'm using the approach of having all of my single-views in one loop-single.php and thus have a simple switch statement that will render each single-view based on the post type: switch($post->...
0
votes
2answers
346 views

Switch Theme Through Options Panel

Is it possible to allow users when logged in to switch the entire theme through a theme options panel? I don't want users to use the standard wordpress way, but instead just an option in their panel. ...
0
votes
1answer
701 views

How to batch convert comments to posts?

I want to display comments using a Post slider plugin, but comments aren't posts. I had a dodgy setup with FeedWordPress (sydnication plugin) by sucking the Comments RSS feed in to to the Comments ...
0
votes
2answers
42 views

Switch-Case and user_role

I am trying to create a page that shows all users with a selection of details. One of those details is the user role it has. For each role I want to display a different string. In order to achieve ...