syncbox
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: c2c_get_custom plugin meta fields question in headjust a follow-up as I have resolved this on my own…
the c2c function has to be AFTER the wp_head() function call in the header.php file for it to work.
I didn’t find that documented anywhere but stumbled onto it in desperate attempts to get this to work! 😉
Forum: Fixing WordPress
In reply to: Mass import data into custom fieldsI think you could insert a few custom fields (maybe one of each type) and then take a look at the database to see how these are entered.
From there, you could use SQL to import a CSV file into the database.
I think that this would be useful, too. I use the c2c_get_custom() plugin all the time and my last use included a glossary of legal terms… WHAT a PITA to enter all 300-400 entries!
It would be nice if the plugin author found a way to do this for that plugin. You’d have to be comfortable with db manipulation using SQL insert statements otherwise…
Forum: Fixing WordPress
In reply to: Retrieve post-slug for <title> tagjust to follow up, I ended up using:
$pages = ( get_pages("child_of=$post->ID&sort_column=menu_order")); foreach ($pages as $page) { echo '<h3 class="excerpt"><a href="'.$page->post_name.'/" title="Click here to read more...">'.$page->post_title.'</a></h3>'.$page->post_excerpt.'<div class="readmore"><a href="'.$page->post_name.'/" title="Click here to read more">Read more about '.$page->post_title.' »</a></div>'; }which ends up giving me a linked title, the optional excerpt, followed by “Read more about”+ the title of the page, all linked to the page.
Hope any of that helps.
Forum: Themes and Templates
In reply to: shorten multiple is_page code?just to follow up, the solution is to use:
if (is_page(1) || is_page(2) || is_page(3)) {arguments}not sure if this was answered elsewhere or not.
Forum: Fixing WordPress
In reply to: Retrieve post-slug for <title> tagHello, Otto42…
I am trying to use your suggested code to get the appropriate permalink for titles to child pages. I am using a plugin called Excerpt Editor and I have it working just fine…I can use your suggested code and get the immediate child page post slugs fine, too. But for deeper pages, it isn’t working, as it is only returning the post slug.
I have this:
<?php $pages = ( get_pages("child_of=$post->ID&sort_column=menu_order&depth=1")); foreach ($pages as $page) { echo '<a href="'.$page->post_name.'" title="Click to read more..."><h2 class="excerpthead">'.$page->post_title.'</h2></a>'.$page->post_excerpt; } ?>but I think I want to get the proper permalink instead…
suggestions?
Forum: Fixing WordPress
In reply to: Checking for multiple pages with is_page()?cool! thank you!
Forum: Fixing WordPress
In reply to: Checking for multiple pages with is_page()?So, if you want to check for 3 or more, you write it
if (is_page(3) || is_page(5) || is_page(7))
??
Forum: Themes and Templates
In reply to: shorten multiple is_page code?That’s a good question and exactly what I am looking for, too. Anyone? How do you indicate multiple pages using
if (is_page())where you might have the same arguments for a range of pages?
Forum: Plugins
In reply to: Fold page list – where to startOK, I just want all of the list items in a submenu to display…
I am using the fold list plugin
I am sorting by menu order and not using the pages title:
<?php wswwpx_fold_page_list(‘title_li=&sort_column=menu_order’,’true’); ?>
Here’s what happens: The submenu (child pages) of a page are only displayed when that item is clicked. GREAT, that’s what I want.
None of the submenus pages (child pages) themselves have children.
When I click on one of the submenu pages, the other “siblings” disappear.
Is this SUPPOSED to happen? If not, how do I stop it? I’d like them to remain visible.
Forum: Plugins
In reply to: Fold Page List plugin gets new custom class for ‘folders’Is there some way to keep the SIBLINGS of the current page visible? The current page has no child pages, but is one of several items sharing the same parent page.
So far, the plugin works to display only the child pages of the clicked parent, but when you click one of the child page links, its siblings disappear from the menu.
Forum: Installing WordPress
In reply to: Sidebar helpI am having trouble with using the .page_item and .current_page_parent styling, though I am not using the fold plugin…
I can get it all to work until I actually click ON the sub (child) page… then the menu displays only the parent page and the current_page item… the siblings of the current page disappear.
Is there any sibling class I can use?
Forum: Fixing WordPress
In reply to: Where is the function that generates the html for wp_list_pages?Thank you so much! I was able to comment out that line for sanitizing and I’m now getting the results I want.
But, just curious, is there a way to get the same result via a plugin? I’ve never even tried to create one, but is it possible to create a plugin that simply comments out that part of the function?
TIA
Forum: Plugins
In reply to: Role Manager PluginDoes Role manager still work for the latest versions of WP? I get errors trying to rename an existing role and creating a new role just doesn’t work at all.
I cannot find a support page for Owen Winkler’s plugin (redalt has nothing) and asymptomatic has nothing… there’s something about forkpress and dropping all support for wordpress…?
Forum: Plugins
In reply to: New Plugin: Availability Calendar and booking managementCan someone tell me if this set of plugins (availability and booking) allow a site visitor to actually book the resource (in this case, it is a vacation cottage) online, including someway to tap into a payment system (even if just paypal)? I don’t expect it to include the payment stuff, just some way for the visitor to finalize the time period chosen and click a button to pay (deposit or fully) via some payment app (like paypal)
I’ve downloaded and will install to check it out, but thought perhaps someone (the plugin developer?) could give me a general yes|no reply on whether the plugin merely passes an email *requesting* a booking or could be fully used to pass the details to paypal (or similar).
The second part would be whether returned data from the payment app can be integrated into the data fields of the plugins’ tables (such as deposit paid, full payment confirmed, etc)
Anyone? TIA!
Donna
Forum: Fixing WordPress
In reply to: how to change ‘siteurl’ functionOK, nevermind… as typical, as soon as I asked for help, I figured it out myself, but hey, that’s ok, too!
what I did was to look through the db for anything using http://example.com (not really, but you get my drift) and changed it to http://www.example.com
It was only in two locations in the options table and seems to have fixed my issue. The maintenance mode plugin seems to work – it both hides the site (except for admin users) and still allows the admin to VIEW the site.