The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
558 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 ...
1
vote
1answer
1k views

Programmatically add a custom page/path/url/route to WordPress

Conceptually what I want to do is super simple. In my plugin, I want to add a single path/route to my wordpress site: [mysiteurl]/testpath ... that loads a particular file, like: [filepath-to-my-...
0
votes
1answer
422 views

Background image appears on localhost site but not online

I am developing a WordPress theme and the background image appeared fine on the local MAMP server. It refuses to appear once I upload the theme into a demo site, however. I've tried every type of path ...
5
votes
4answers
11k 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 ...
1
vote
2answers
38 views

How to display a raw HTML page (bypassing WordPress theme, scripts, etc)

I'm a software engineer with a WordPress site with hundreds of pages, and it's working very well. There are certain cases, however, where I'd love to be able to code my own page with no interaction ...
1
vote
1answer
485 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 ...
0
votes
2answers
548 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
1answer
627 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 ...
0
votes
1answer
1k views

Wrong path for theme assets

I'm working on a WordPress project, starting from Mark Jaquith's WordPress-Skeleton repository, using MAMP. I cloned the repo, updated the WordPress submodule, created a database and updated the ...
0
votes
1answer
52 views

Problem with loading images from child theme CSS file with relevant path

I am getting an issue with loading relevant images within CSS file from a child theme directory. I placed - Sites: example.com OR sub-domain.example.com body{ background-image: url(/wp-content/...
0
votes
0answers
15 views

Highlighting correct path with Wordpress Nav_Menu function

I have created a WordPress site for a client, in which you filter through the navigation menu (set-up in appearance->menu) by revealing hidden items (unordered lists with class "sub-menu (generated ...
0
votes
0answers
20 views

Wordpress Page using Capitalized URL path

I have created a page abcd with the url path www.domain.com/abcd I also created a page template file called page-abcd.php which is placed within the theme directory. The issue I am having is when ...
0
votes
3answers
47 views

Plugin base URL

In a question that is related to, but not the same as, How to link to images in my plugin regardless of the plugin folder's name plugin-folder/plugin-main-file.php plugin-folder/images/ ...
0
votes
0answers
25 views

How to ignore further page child path?

We are desperately looking for a way to create a page that accepts parameters, just like: example.com/mypage/?key=value but... without the ordinary query string. Instead, we wish to use the ...
1
vote
2answers
4k 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
25 views

Difference between how to set path to the theme folder

I crate many wordpress based sites. When i need to include path to the theme folder, i use this code <?php bloginfo('template_url'); ?>. I`m Theme check plugin. And they say to me bloginfo('...
0
votes
2answers
85 views

Get the path of the first attached media (single.php)

I'm currently developing a wallpaper website using WordPress and I'm trying to figure it out how to retrieve the path of the first attached media in the post so I can display the path in the post (e.g....
0
votes
0answers
54 views

Multisite wrong image paths front end

I'm working on a Wordpress multisite using subdomains. Everything with both sites working fine except for image paths on the second site. The images show fine and have correct paths in the media ...
0
votes
2answers
79 views

php - Plugin/theme relative PATH/URI

I would like to get relative path from a php file without knowing the absolute path. I have succeeded to do it but for a reason which I don't know, on some servers (in rare case) it doesn't work when ...
1
vote
2answers
3k 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') . ...
1
vote
2answers
894 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 /home/...
0
votes
1answer
8k views

How do I 'rebuild' the WordPress Media library after transfer to new host?

I recently inherited a large site from a developer that vanished. The site has more than 6,000 images. In the pages most of the images are missing, however, they are referenced in the media library ...
0
votes
2answers
193 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
149 views

WP All Export + Realhomes Theme -> Full Image Path

Second challenge for today :P I'm using WP All Export + REALHOMES Theme for Wordpress in localhost. I'm facing some issues: When adding pictures to a property (post), in this theme you need to use ...
0
votes
1answer
76 views

Domain mapping breaks some plugin scripts and css

Here is the context: I have a sub domains wp mu install with wp-content in a different location and using the domain mapping plugin. WP and all my plugins are up to date. There is no https involved. ...
1
vote
1answer
29 views

Can I have /blog and /foo and /bar all point to the same blog?

I currently have wordpress installed in its own directory and serving content for URLs beginning with /blog. So all my wordpress content is served from URLs like these: http://www.superfantasticsite....
-1
votes
1answer
23 views

Absolute blog path to current page

I would like to display the other paths/pages which are before the current site, plus the current site as you can see here. I searched the web and I couldn't found something. It may also be ...
0
votes
1answer
38 views

Rewritten URL not loading WordPress environment

I have a page that I am sending users directly to so I can serve them a PDF dynamically created using the FPDF library. Since I'm sending them directly to the file which generates the PDF, I'm ...
13
votes
1answer
3k views

What's the difference between get_home_path() and ABSPATH?

What's the difference between get_home_path() and ABSPATH? Isn't the point of both to point to the WordPress install root?
0
votes
1answer
197 views

Relative URLs within site

I want to link to a page inside a website so the url I want to link to is this: http://www.example.org/about-us/team when I set a link like that: <a href="about-us/team">Our Team</a> ...
0
votes
2answers
49 views

WordPress login page logo customization

For some reason the first code works. But the second does not. And I can't figure out what is wrong with my syntax. background-image: url("/wp-content/themes/flawless-v1-17-child-01/images/Logo-B-...
0
votes
3answers
110 views

Images give 404 after changing default domain

Never encountered this issue before. So I've just moved a site for a client to another server and for some reason all images give me a 404 when I change the default domain in the database (siteurl and ...
3
votes
1answer
413 views

Display posts for a single post format

I saw a a url path to display all posts of a particular 'format' a few weeks ago, but I've lost the link. Does anyone know the path? It will be something like mywebsitex.com/format/image Works ...
14
votes
2answers
32k views

How to get the path to the current theme?

This code is used to get the directory of the current plugin: plugin_dir_url( __FILE__ ). What should I use to get the directory of the current theme?
1
vote
1answer
1k views

How to call plugin path in JS?

I am using wp-store-locator plugin and I want to add plugin directory path to my JS. html = "<li data-store-id='" + id + "'><div><p>" + storeImg + "<strong>" + store + "</...
0
votes
1answer
54 views

Theme parts path location dump

Few months back I was working on customizing theme that I was assigned to. I remember that I used some function or define something in the config or theme functions file and than it displayed debug ...
0
votes
1answer
13 views

What paths does WordPress use for itself on a domain?

I own a domain, www.mydomain.com, where I publish solitary webpages on some path - i.e. www.mydomain.com/mycustompath1/ , www.mydomain/mycustompath2/ , etc. Currently there is no content in the root ...
1
vote
3answers
5k 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
479 views

Subpages return 404 server error

I just moved a site to another production environment and I have an issue with accessing subpages. The home page and the /wp-admin section works as expected and there are no path issues with images or ...
0
votes
1answer
69 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 example.com/...
3
votes
0answers
876 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 /home/mydomain/public_html/wp-...
1
vote
1answer
1k 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
1answer
155 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
33 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
216 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
105 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
4
votes
1answer
6k views

show current navigation path from menu

I want something like this Home > Products > Steel > Nails This information should come from the menu structure! I installed Breadcrumb NavXT but it seems that it only takes the path I defined (this ...
0
votes
0answers
296 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
161 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
0answers
132 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 ...