The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
13 views

When moving a WP site, why does wp-admin redirect to old site?

I am in the process of moving a WP site from one host to another. I copied the database and all the files, created a new database and imported the old one. I then changed the wp-config file. The home ...
0
votes
1answer
24 views

Echo page path suffix only - not the title, path or permalink

Is it possible to echo a page path suffix only? ie: if the path/permalink is example.com/about, echo just "about"? My page paths are different than my page titles (ie: page title for ...
0
votes
1answer
43 views

wordpress admin part is not accesbile after server shifting

one of my site's wp-admin is not accesible but the site front part is loading. This happens after i accessed the site from my new server second time. at first nothing happens and i can logg into ...
0
votes
1answer
38 views

Image paths on custom post types getting /post_type/ added to path

Whenever I use a JavaScript path to /images/imagename.jpg or within CSS ie. background: url(../images/imagename.jpg) works fine sitewide giving me an expected path to an image that looks like this: ...
0
votes
0answers
19 views

how can i get path to custom template , for a shared taxonomy

I have created custom taxonomy called "product_category", it has been shared with post type "books" and "movies" .so for it i have created two custom template. which has different loops for my custom ...
0
votes
0answers
13 views

How Do Set image Folder For generated thumbnails with wp_generate_attachment?

I wrote an import app to create posts with several attached images. The files are already on the server under wp-content like so: wp-content/mygalleries/gal_a wp-content/mygalleries/gal_b ...
1
vote
1answer
40 views

Get posts from taxonomy URL

How can I get the posts from a custom taxonomy using the URL to determine which taxonomy term id is being shown? I tried to get posts via a category using get_category_by_path which returned false ...
0
votes
0answers
27 views

How to tell if a script is being executed from a plugin, a theme or a child theme in WordPress?

I have a framework for WordPress that can be embedded into either a plugin, a theme or a child theme. In order to return proper URLs, the script needs to determine from where it is being executed. I ...
0
votes
1answer
49 views

Slashes stripped in ACF

Use ACF pluging to save a windows path like this : c:\users\thanassis\photos using a text field. The ACF saves this : c:usersthanassisphotos as path except the character \. If I use this / it's ok. I ...
0
votes
0answers
16 views

All files unattached in Media Library

After moving to new host all files unattached in Media Library, need a way to re-attach them. Thanks
2
votes
0answers
170 views

How to get WordPress to save upload file beyond web root

I am using nginx on a multisite install. I am trying to get WordPress to save uploads to a folder beyond the webroot : /home/mydomain/file_secure as opposed to ...
0
votes
0answers
50 views

Page/Post path in Search Results

I have lots of pages with similar titles which may be confusing when users search for something. To help them tell apart the pages, I'd like to add the page/post location (path) under each page/post ...
0
votes
0answers
83 views

how to change featured image path according to “alt” property

when a featured image is added, the path for this image is http://domain.com/wp-content/uploads/filename for some featured image i would like to use only "filename" in the path do you know how to ...
0
votes
1answer
16 views

How to change the path to a WP MU site?

My WP MU site is at http://www.mydomain.com/mymu/. I would like to change it to http://www.mydomain.com/somethingelse/. Can I just open up FTP and rename the folder or will that cause any issues?
0
votes
3answers
370 views

Absolute Path (ABSPATH) in WordPress is not working

I am currently working on a small task that store a plugin information into database, but I have problem regarding to include the file that has the functions to run the query. Here is the line that ...
0
votes
0answers
54 views

Display single event not found error | Sugar Events Calendar Lite

I’ve install this plugin but i have an error. If I try lo look the single event on calendar i have an 404 error. Link, here is the error Link with error I've tried to re-save the permalink setting ...
0
votes
0answers
62 views

image path error in wordpress multisite

I have a WordPress multisite and I can upload and display images in the main site, but not in the others. When I upload an image, it doesn't show any error, but the image doesn`t display, like when a ...
0
votes
0answers
22 views

How to move images from /uploads to the /uploads/Year/Month structure? [duplicate]

A site has more than 5000 images (without the automatically from WP generated ones) in the /uploads folder. The site is very slow, I want to move the images into the /uploads/year/month structure, and ...
0
votes
0answers
31 views

Server Path Information

I have a plugin that uses server paths to define the location of an Image Folder, however, I have decided to have a CDM or a new separate server to host my images. Currently all the paths look like ...
0
votes
0answers
30 views

Where do URI files come from?

Installed locally or in a web server, how is a file (for example, style.css using wp_enqueue_style) created? More specifically, when I tried this using the default twentythirteen theme: echo ...
1
vote
1answer
74 views

issues including a file from a plugin directory

I have a processForm.php in theme directory that does what it says. I am trying to include a file (which i need in order to run a specific function in processform.php) from a plugin directory and have ...
0
votes
1answer
35 views

bloginfo no show the right path

I use bloginfo( 'stylesheet_directory' ) for show the link to css styles , in localhost in my computer i can see the url right as http://127.0.0.1 , etc The problem it´s inside of domain , i see ...
0
votes
1answer
36 views

Wordpress VIP realpath Alternative?

I am running a scan for a site to be proposed to wp vip. The only error I am getting is : Warning: Returns canonicalized absolute pathname header-payroll.php require_once ...
0
votes
1answer
38 views

proper syntax of getting wp-admin pages/links

i cant seem to find the codex for my situation. normally, i use get_bloginfo('template_url') to get to the template path, but this time i need to get to some WP-ADMIN pages. i created a custom ...
0
votes
0answers
72 views

File Path for dropdown list

Ok, I have a dropdown menu I'm populating with a list of pdf's that are uploaded to a specific directory on my server. See "Past Meetings" on the right. ...
0
votes
1answer
332 views

plugins_url function mixes system path and URL

In my WordPress widget I use the following code: wp_register_script('jquery-ui.widget', plugins_url('assets/js/jquery-ui-1.9.2.widget.js', dirname( __FILE__ ))); Unfortunately, the code gives me an ...
1
vote
0answers
78 views

Using arbitrary paths in page urls

I have been looking all over the place and maybe I'm just searching the wrong terminology but I need to be able to allow an end user (completely non-technical) to add an arbitrary path to the url ...
2
votes
1answer
205 views

Remove 'wp-content/themes/themename/' from Image path

I'm currently moving an old website based on some other CMS towards a new server, with WordPress. However, the site ranks good on Google, and I'm have to keep all the link structure, including the ...
0
votes
1answer
52 views

Is it possible to have a Theme with built-in physical page files?

I am creating a theme and was thinking if it would be possible to create pages within my theme folder that would reflect the wordpress url + path. So for example I could when accessing: ...
0
votes
0answers
94 views

Transfered live site to new server and images are not showing

i just recently transfered a new site to a server. All paths are correct when I debug the site but for some reason the uploads front and back do not show either in the media section or the site pages. ...
0
votes
1answer
49 views

Include paths and functions for external scripts

I try load external script as plugin , the idea it´s use one easy plugin and call script and load this script into admin but i have problems with some configuration files and css files , in the case ...
0
votes
2answers
142 views

Change path of the page's template

It's possible to create templates for pages with that: <?php /* Template Name: Contact */ ?> This templates are located on the theme folder, right? Is possible to change the default path where ...
0
votes
1answer
215 views

Absolute paths in backend for plugins after moving wordpress

I wanted to move my wordpress from www.domain.com/old-name to www.domain.com/new-name. I thought that this is no problem and I missed backing up... Now if your are logged in into the dashboard the ...
1
vote
0answers
240 views

Why can't the WP-CLI installer find my php.ini?

I am trying to install WP-CLI on my Mac using the standard installation command (found here: http://wp-cli.org), yet I am receiving the following error message: #!/usr/bin/env php Some ...
1
vote
1answer
76 views

Current path on page in functions.php

How can I get the current path of my page? I know how to do it inside a template file, but I need it inside functions.php. And it has to be before the send_headers hook, because I'll use this info to ...
1
vote
1answer
2k views

ABSPATH not working! Any idea why?

This is what in my wp-config.php : if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); I am calling from plugin/pluginName directory to : require_once( ABSPATH . ...
1
vote
3answers
2k views

theme path in javascript file

I need to include the path to my theme file within a javascript file. How would I go about this? I have already tried: var templateUrl = "<?php get_stylesheet_directory_uri(); ?>"; function ...
0
votes
1answer
113 views

Path for contact form file

I have a php contact form that I use with all websites, so ideally I want to avoid using a plug in. The files used include: • contact.php - A file with php/html write up which displays the form ...
1
vote
1answer
366 views

What is the correct way to convert the absolute path of the executing script to a URL, in WordPress?

In a nutshell, my question is "How do I convert the absolute path of the executing script, e.g., /home/content/xx/xxxxxxxx/html/wp-content/plugins/MY_PLUGIN_DIR/MY_PLUGIN/MY_PLUGIN.PHP or ...
1
vote
1answer
91 views

How do I test my localhost WordPress project with VirtualBoxVM?

I'm working on a WordPress project set up with MAMP on localhost. I try testing the site on internet explorer with VirtualBoxVM by browsing to my local ip. My problem is, wp_head() outputs absolute ...
0
votes
1answer
104 views

WP-DBManager Plugin Can't Find Mysql Path

I support a WordPress 3.4.2 site, lifering.org, running on a GoDaddy Virtual Server. Recently I chose to upgrade the underlying O/S from CentOS 5 to CentOS 6. The rebuild was entirely automated and ...
2
votes
1answer
2k views

Change the path where wordpress plugins are uploaded

Currently my plugins are getting uploaded to public_html/sitename/wp-content/plugins instead of public_html/wp-content/plugins. Is there any way that I can change the path where word press uploads the ...
0
votes
1answer
70 views

Absolute path in Wordpress Network site

This site is part of a Wordpress Network. In the theme's CSS, I'd like to reference some font files using @font-face. The fonts live in the theme's directory. If I use a path like this: ...
3
votes
3answers
956 views

Setting a custom sub-path for blog without using pages?

Warning: fairly pedantic request ahead. I have a design that makes use of posts (I.e., the blog) and a custom post type called "howto". The site front page ("/") has a template that displays the ...
0
votes
1answer
823 views

Retrieve Path of admin.php

Is there a better way of retrieving the path of admin.php and the url of wp-admin.css? What I can think of is: $adminphppath = ABSPATH . '\wp-admin\admin.php'; $admincssurl = get_bloginfo('wpurl') . ...
0
votes
1answer
245 views

Create a Custom Path to Archive

To get at archive pages (by default) the path is /%category%/ Which is fine. But how would i change it to have a static string prefix before the category variable (e.g. /archive/%category%). Same ...
4
votes
1answer
186 views

Which method is best to enqueue scripts

I'm currently authoring the development of a plugin for wordpress, and I'm having trouble figuring out which would be the best way to add scripts to the plugin. I'm in the process of adding more ...
0
votes
2answers
860 views

hijacking home_url for root relative paths

I'd been having trouble with the full domain name being written into the path of links and assets. Basically localhost:XXXX works fine, until I try to reach my site from a Virtual Box install of XP or ...
0
votes
2answers
684 views

wp_nav_menu with icon

When I use this code: <?php wp_nav_menu( array( 'theme_location' => 'slider', 'link_before' => '<img src="'.bloginfo( 'template_directory' );.'/images/icon.png" alt="" />' ) ); got ...
0
votes
2answers
2k views

Images in sub-pages fail to load

I added a .htaccess file to a wordpress website I'm working on, to show nice urls instead of page ids. The content of the .htaccess is this: <IfModule mod_rewrite.c> RewriteEngine On ...