Tag Info

New answers tagged

0

Assuming that there are limited video in your site. you can replace URL by do following : Expert your site database , Replace URL and import again. This is safe way to replace URL. You can do same thing using sql query also but that can cause problem sometime.


0

You should take a look at the WordPress hierarchy page in the documentation. Here it's the relevant part: page-{slug}.php - If the page slug is recent-news, WordPress will look to use page-recent-news.php http://codex.wordpress.org/Template_Hierarchy


0

The approach is pretty much sound, this is how these things work in WordPress. You might want to use add_rewrite_enpoint() for implementation though, since it compresses multiple steps into on integrated call and fits many use cases well.


1

I don't know what your definition of "simple" is, so not sure this qualifies. It's not really a simple task to do this dynamically. First, we register a new query var to pass the alternate identifier: function wpd_portfolios_query_var($query_vars){ $query_vars[] = 'portfolio_key'; return $query_vars; } add_filter('query_vars', ...


2

The "cheapest" way to achieve this probably would be to simply add two pages: // Standard template http(s)://example.com/portfolio-xyz Then add another page with your second URl and use a custom page template where you query your single post using get_post() and display it however it pleases you: <?php /* Template Name: Alternate Portfolio PT template ...


0

You are using get_the_title(), which needs to be echoed out. However, you have it inside the string. Also, you might want to use isset() rather than !empty(). Try this: if( isset( $destino_web ) && $destino_web !== '') { echo sprintf('<p><strong>Web:</strong><a href="%s">%s</a></p>', $destino_web, get_the_title() ...


0

I'd try changing the order of your rules. Once the default WP rules run, your URL will be rewritten and your last rule won't work. SetEnv no-gzip dont-vary RewriteEngine On RewriteRule ^produse/piese-schimb-utilaje-agricole/([0-9]+)/?$ ...


0

You don't say if is a multisite installation or two separate stand-alone ones. I'm going to suppose it isn't multisite because if so, the answer is trivial. In the other case, there isn't any problem. You have to configure ssl as usual in your apache vhost or nginx for each domain with your wilcard certificate. Aditionally, you can use the Wordpress HTTPS ...


0

Setting up MultiSite in one main domain, that you have SSL, and then use the other domain as custom sunrise domain settings. You have to setup the .htaccess or vhost(for NGiNX) though. But both site will need to have almost same type domain or plugin. Its one way. Other will be a bit complex one. I would setup two separate WordPress in two separate ...


0

To enable the Network Setup menu item, you must first define multisite in the wp-config.php file. Open up wp-config.php and add this line above where it says /* That's all, stop editing! Happy blogging. */. If it doesn't say that anywhere, then add the line somewhere above the first line that begins with require or include: /* Multisite */ define( ...


2

There are four valid sizes built in to the WordPress core. the_post_thumbnail('thumbnail'); // Thumbnail (default 150px x 150px max) the_post_thumbnail('medium'); // Medium resolution (default 300px x 300px max) the_post_thumbnail('large'); // Large resolution (default 640px x 640px max) the_post_thumbnail('full'); // ...



Top 50 recent answers are included