derek642
Forum Replies Created
-
Forum: Networking WordPress
In reply to: get_page_by_path not working with multisiteLouis,
Did you ever figure this out… I’m wondering if I’m having a similar issue with trying to use the below code, with get_path… on a multisite without luck… Thanks for the follow-up!<?php $post = get_page_by_path('www.anotherwordpresssite.com/page'); $content = apply_filters('the_content', $post->post_content); echo $content; ?>
(I’m trying to post the same sample page content on multiple “example” sites, so I’m not worried about google ranking or anything for identical content…)
TIA
Ok, a quick update… I deleted the WP multsite installation, and deleted the contents of the db (via phpMyAdmin) so that was blank, reinstalled WP, this time version 4.1.2, and ALSO did not put slashes in the 2nd site I was trying to create (was trying bronze-2013 before, this time tried just bronze2013) and it seemed to add it without giving me the above formatting.php warnings… I will update with other things as I continue to progress…
Also, since this multisite is just started, I have no problem starting the fresh WP install over, if there are specific code samples someone has to get this working from a fresh install… Thanks again!
Forum: Fixing WordPress
In reply to: Custom page template in Edit Page dropdown listOk… quick update!
First off, I WAS BLIND BUT NOW I CAN SEE!The template name I put in the top of the file was the same name as the other page template (so I never changed the top name)
I changed the name in the file, re-uploaded it via ftp and tried to goto edit page and it is listed now…
@andy – Thanks for all your help!
Forum: Fixing WordPress
In reply to: Custom page template in Edit Page dropdown listWordPress version is 3.4. I will try to rename the file to just studylearn.php and let you know.
I added this template name to the sidebar-init.php file to initialize it – I’m guessing for the admin>>widgets section. Is there perhaps another WP config file I need to add this to for the template page dropdown of the edit page also?
Forum: Fixing WordPress
In reply to: Custom page template in Edit Page dropdown list@andy – Thanks. Yes I did reload the page, and logout and login also…
the page template name is page-temp-studylearn.php (exact name convention as the other ones which is page-temp-[name].php)
and the file path is:
…/wp-content/themes/swift/page-temp-studylearn.phpunfortunately I am at ‘work’ now, so I cannot post the code from the file itself at this time…
Thanks again
Forum: Fixing WordPress
In reply to: Custom page template in Edit Page dropdown listAlso… I do have that Template Name at the top of the file…
I actually used an existing page template file, that had right sidebars, and saved as different file name and changed the Template Name section at the top. Thanks again!Forum: Fixing WordPress
In reply to: Custom page template in Edit Page dropdown list@andy – Thanks for the reply. I am not trying to use a custom post type – I don’t think! ??
What I am trying to do is display certain sidebar menus based on the page group is viewed, so to do that I tried tocreate a new page template – that has right sidebar – and then I could be able to setup what sidebar widgets to use for the specific page template.
The New page template I created shows up in the Admin>>Widgets section as a page template, but not on the Admin>>Edit Page screen as one of the dropdown options.
If it helps at all I’m using the Swift Theme…
Forum: Fixing WordPress
In reply to: "Read more" link using List Category Posts pluginI have the ‘read more’ text displayed, but it is below the excerpt. What I am looking for is to have the ‘read more’ text be right after the excerpt – not below it. What section to I have to modify to do this? Many thanks!
Forum: Fixing WordPress
In reply to: PHP include of WP Page in Sidebar?@dkotter – Thanks a lot, that worked pefectly! But I didnt’ have to use it as a function, I just copied the php script into the sidebar widget since I have the Exec-PHP plugin installed too…
If I were to make this a function, where do I put the function scripting to call from? functions.php file in the theme?
and it looks like I can add department manually in the ‘extended users’ section where the department column is listed in WP backend… But what I am wanting to to is do mass user import with extra fields in import and have them added to the right place…
Hello all. I am in the same boat. I need to add extra user fields to the WP users table, and have installed Cimy Extra and Cimy User Manager. however here is my dillema…
I add a custom/extra field called “department”
and to test it, I exported current users to csv – which lists the column header for ‘department’ with no data. So I add data to that column in the csv and then goto import that back into the users table.But, I’m guessing since the extra fields are added in a different table it says that ‘field doesn’t exsist and doesn’t update that field at all… Have you guys worked this out for importing user datat with extra fields you create? And can you post the solution?
Thanks!
Forum: Fixing WordPress
In reply to: page loading slow, idea?Thanks for the tests guys! I have tried it on Firefox 4.XX from work, and Firefox 4.xx, Chrome from home and it appears slow on both for me. I’m not sure the connection speed at work, but it’s for IBM, so I would imagine it’s fast – but they maybe limiting traffic to ‘non-work’ sites too. And at home, we have Verizon DSL, but I think that is the lower end speed package (and we have 3 laptops, Sat TV, PS3 all going through our Wireless network) which MAY explain that too.
If anyone is local to Harrisburg, PA that can test in Firefox/Chrome that would be awesome also!
But I’m glad that so far is sounds like it is just something local, as I really don’t like my sites to load THAT LONG. Thanks again, keep them coming if you got em! ??
~Derek
Forum: Fixing WordPress
In reply to: Browser Page doesn't match General>>TitleOk, well I did find another person wanting to CHANGE the title, and this seemed to work for me:
<!-- <title><?php if(is_home()) { echo bloginfo('name'); } else { wp_title(''); } ?></title> --> <title><?php if(is_home()) { echo bloginfo(‘name’); echo ‘ | ‘; echo bloginfo(‘description’); } else { echo wp_title(‘ | ‘, false, right); echo bloginfo(‘name’); } ?></title>
I just commented out the <title> code that was there and pasted in what the other person got to work.. and it seems to have worked for me…
Hope this helps someone else with a similar problem! ??